<?phpnamespace App\Entity;use App\Repository\BankAccountRepository;use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;use Doctrine\ORM\Mapping as ORM;use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;use Symfony\Component\Serializer\Annotation\Ignore;/** * @ORM\Entity(repositoryClass=BankAccountRepository::class) * UniqueEntity(fields={"label"}, message="Ce compte bancaire existe déjà.") * @Auditable() */class BankAccount{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $label; /** * @ORM\Column(type="string", length=255) */ private $number; /** * @ORM\ManyToOne(targetEntity=Currency::class) */ private $currency; /** * @ORM\ManyToOne(targetEntity=Bank::class, inversedBy="bankAccounts") */ private $bank; /** * @ORM\Column(type="integer") */ private $status; /** * @ORM\Column(type="boolean", nullable=true) */ private $isDeleted; /** * @Ignore() * @ORM\ManyToOne(targetEntity=Users::class) */ private $userCreate; /** * @ORM\Column(type="datetime", nullable=true) */ private $dateCreate; /** * @Ignore() * @ORM\ManyToOne(targetEntity=Users::class) */ private $userUpdate; /** * @ORM\Column(type="datetime", nullable=true) */ private $dateUpdate; public function getId(): ?int { return $this->id; } public function getLabel(): ?string { return $this->label; } public function setLabel(string $label): self { $this->label = $label; return $this; } public function getNumber(): ?string { return $this->number; } public function setNumber(string $number): self { $this->number = $number; return $this; } public function getCurrency(): ?Currency { return $this->currency; } public function setCurrency(?Currency $currency): self { $this->currency = $currency; return $this; } public function getBank(): ?Bank { return $this->bank; } public function setBank(?Bank $bank): self { $this->bank = $bank; return $this; } public function getStatus(): ?int { return $this->status; } public function setStatus(int $status): self { $this->status = $status; return $this; } public function getIsDeleted(): ?bool { return $this->isDeleted; } public function setIsDeleted(?bool $isDeleted): self { $this->isDeleted = $isDeleted; return $this; } /** * @Ignore() */ public function getUserCreate(): ?Users { return $this->userCreate; } public function setUserCreate(?Users $userCreate): self { $this->userCreate = $userCreate; return $this; } public function getDateCreate(): ?\DateTimeInterface { return $this->dateCreate; } public function setDateCreate(?\DateTimeInterface $dateCreate): self { $this->dateCreate = $dateCreate; return $this; } /** * @Ignore() */ public function getUserUpdate(): ?Users { return $this->userUpdate; } public function setUserUpdate(?Users $userUpdate): self { $this->userUpdate = $userUpdate; return $this; } public function getDateUpdate(): ?\DateTimeInterface { return $this->dateUpdate; } public function setDateUpdate(?\DateTimeInterface $dateUpdate): self { $this->dateUpdate = $dateUpdate; return $this; }}