Add base entities
This commit is contained in:
65
src/Entity/Species.php
Normal file
65
src/Entity/Species.php
Normal file
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Repository\SpeciesRepository;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
#[ORM\Entity(repositoryClass: SpeciesRepository::class)]
|
||||
class Species
|
||||
{
|
||||
#[ORM\Id]
|
||||
#[ORM\GeneratedValue]
|
||||
#[ORM\Column]
|
||||
private ?int $id = null;
|
||||
|
||||
#[ORM\Column(length: 255)]
|
||||
private ?string $scientific_name = null;
|
||||
|
||||
#[ORM\Column(length: 255)]
|
||||
private ?string $vernacular_name = null;
|
||||
|
||||
#[ORM\Column(length: 255)]
|
||||
private ?string $region = null;
|
||||
|
||||
public function getId(): ?int
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
public function getScientificName(): ?string
|
||||
{
|
||||
return $this->scientific_name;
|
||||
}
|
||||
|
||||
public function setScientificName(string $scientific_name): static
|
||||
{
|
||||
$this->scientific_name = $scientific_name;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getVernacularName(): ?string
|
||||
{
|
||||
return $this->vernacular_name;
|
||||
}
|
||||
|
||||
public function setVernacularName(string $vernacular_name): static
|
||||
{
|
||||
$this->vernacular_name = $vernacular_name;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getRegion(): ?string
|
||||
{
|
||||
return $this->region;
|
||||
}
|
||||
|
||||
public function setRegion(string $region): static
|
||||
{
|
||||
$this->region = $region;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user