src/Entity/StaffServiceOrder.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\StaffServiceOrderRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassStaffServiceOrderRepository::class), ORM\Table(name'staff_service_orders')]
  6. class StaffServiceOrder
  7. {
  8.     #[ORM\IdORM\GeneratedValueORM\Column(type'integer')]
  9.     private $id;
  10.     #[ORM\Column(type'string'length100)]
  11.     private $fileName;
  12.     #[ORM\ManyToOne(targetEntityStaffProfile::class, inversedBy'serviceOrders'), ORM\JoinColumn(nullablefalse)]
  13.     private $profile;
  14.     public function getId(): ?int
  15.     {
  16.         return $this->id;
  17.     }
  18.     public function getFileName(): ?string
  19.     {
  20.         return $this->fileName;
  21.     }
  22.     public function setFileName(string $fileName): self
  23.     {
  24.         $this->fileName $fileName;
  25.         return $this;
  26.     }
  27.     public function getProfile(): ?StaffProfile
  28.     {
  29.         return $this->profile;
  30.     }
  31.     public function setProfile(?StaffProfile $profile): self
  32.     {
  33.         $this->profile $profile;
  34.         return $this;
  35.     }
  36. }