src/Entity/InjuryDetail.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\InjuryDetailRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. use Symfony\Component\Validator\Constraints as Assert;
  7. #[ORM\Entity(repositoryClassInjuryDetailRepository::class), ORM\Table(name'injury_details')]
  8. class InjuryDetail
  9. {
  10.     #[ORM\IdORM\GeneratedValueORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\ManyToOne(targetEntityInjuredInfo::class, inversedBy'injuries'cascade: ['persist']), ORM\JoinColumn(nullablefalse)]
  13.     #[Assert\Type(type'App\Entity\InjuredInfo'), Assert\Valid]
  14.     private $injuredInfo;
  15.     #[ORM\Column(type'string'length255), Assert\NotBlank]
  16.     private $injuryName;
  17.     #[ORM\Column(type'string'length255), Assert\NotBlank]
  18.     private $inflictedSidePart;
  19.     #[ORM\Column(type'string'length100), Assert\NotBlank]
  20.     private $injurySize;
  21.     #[ORM\Column(type'string'length100), Assert\NotBlank]
  22.     private $shapeMargin;
  23.     #[ORM\Column(type'string'length100), Assert\NotBlank]
  24.     private $injuryAge;
  25.     #[ORM\Column(type'string'length100), Assert\NotBlank]
  26.     private $weaponType;
  27.     #[ORM\Column(type'string'length100), Assert\NotBlank]
  28.     private $injuryNature;
  29.     #[Gedmo\Timestampable(on'create'), ORM\Column(type'datetime')]
  30.     private $createdAt;
  31.     public function getId(): ?int
  32.     {
  33.         return $this->id;
  34.     }
  35.     public function getInjuredInfo(): ?InjuredInfo
  36.     {
  37.         return $this->injuredInfo;
  38.     }
  39.     public function setInjuredInfo(?InjuredInfo $injuredInfo): self
  40.     {
  41.         $this->injuredInfo $injuredInfo;
  42.         return $this;
  43.     }
  44.     public function getInjuryName(): ?string
  45.     {
  46.         return $this->injuryName;
  47.     }
  48.     public function setInjuryName(string $injuryName): self
  49.     {
  50.         $this->injuryName $injuryName;
  51.         return $this;
  52.     }
  53.     public function getInflictedSidePart(): ?string
  54.     {
  55.         return $this->inflictedSidePart;
  56.     }
  57.     public function setInflictedSidePart(string $inflictedSidePart): self
  58.     {
  59.         $this->inflictedSidePart $inflictedSidePart;
  60.         return $this;
  61.     }
  62.     public function getInjurySize(): ?string
  63.     {
  64.         return $this->injurySize;
  65.     }
  66.     public function setInjurySize(string $injurySize): self
  67.     {
  68.         $this->injurySize $injurySize;
  69.         return $this;
  70.     }
  71.     public function getShapeMargin(): ?string
  72.     {
  73.         return $this->shapeMargin;
  74.     }
  75.     public function setShapeMargin(string $shapeMargin): self
  76.     {
  77.         $this->shapeMargin $shapeMargin;
  78.         return $this;
  79.     }
  80.     public function getInjuryAge(): ?string
  81.     {
  82.         return $this->injuryAge;
  83.     }
  84.     public function setInjuryAge(string $injuryAge): self
  85.     {
  86.         $this->injuryAge $injuryAge;
  87.         return $this;
  88.     }
  89.     public function getWeaponType(): ?string
  90.     {
  91.         return $this->weaponType;
  92.     }
  93.     public function setWeaponType(string $weaponType): self
  94.     {
  95.         $this->weaponType $weaponType;
  96.         return $this;
  97.     }
  98.     public function getInjuryNature(): ?string
  99.     {
  100.         return $this->injuryNature;
  101.     }
  102.     public function setInjuryNature(string $injuryNature): self
  103.     {
  104.         $this->injuryNature $injuryNature;
  105.         return $this;
  106.     }
  107.     public function getCreatedAt(): ?\DateTimeInterface
  108.     {
  109.         return $this->createdAt;
  110.     }
  111. }