src/Entity/Prestataire.php line 11
<?phpnamespace App\Entity;use App\Repository\PrestataireRepository;use App\Traits\TimeStampTrait;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: PrestataireRepository::class)]#[ORM\HasLifecycleCallbacks]class Prestataire{use TimeStampTrait;#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 100)]private ?string $code = null;#[ORM\Column(length: 50)]private ?string $fullname = null;#[ORM\Column(length: 25)]private ?string $phone = null;#[ORM\Column(length: 50, nullable: true)]private ?string $email = null;#[ORM\Column(length: 100, nullable: true)]private ?string $adress = null;#[ORM\Column]private ?bool $status = null;#[ORM\ManyToOne(inversedBy: 'prestataires')]private ?Entreprise $marchand = null;#[ORM\ManyToOne(inversedBy: 'prestataires')]private ?Service $service = null;public function getId(): ?int{return $this->id;}public function getCode(): ?string{return $this->code;}public function setCode(string $code): static{$this->code = $code;return $this;}public function getFullname(): ?string{return $this->fullname;}public function setFullname(string $fullname): static{$this->fullname = $fullname;return $this;}public function getPhone(): ?string{return $this->phone;}public function setPhone(string $phone): static{$this->phone = $phone;return $this;}public function getEmail(): ?string{return $this->email;}public function setEmail(?string $email): static{$this->email = $email;return $this;}public function getAdress(): ?string{return $this->adress;}public function setAdress(?string $adress): static{$this->adress = $adress;return $this;}public function isStatus(): ?bool{return $this->status;}public function setStatus(bool $status): static{$this->status = $status;return $this;}public function getMarchand(): ?Entreprise{return $this->marchand;}public function setMarchand(?Entreprise $marchand): static{$this->marchand = $marchand;return $this;}public function getService(): ?Service{return $this->service;}public function setService(?Service $service): static{$this->service = $service;return $this;}public function __toString(): string{return $this->fullname;}}