<?phpnamespace App\Entity\Core;use Doctrine\DBAL\Types\Types;use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;use Symfony\Component\Validator\Constraints as Assert;use Doctrine\ORM\Mapping as ORM;use Vich\UploaderBundle\Mapping\Annotation as Vich;use Symfony\Component\HttpFoundation\File\File;use Symfony\Component\HttpFoundation\File\UploadedFile;use Vich\UploaderBundle\Entity\File as EmbeddedFile;/** * RIB * * @ORM\Table("core_rib") * @ORM\Entity(repositoryClass="App\Repository\Core\RibRepository") * @ORM\HasLifecycleCallbacks() * @Vich\Uploadable */class Rib{ /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ protected $id; /** * @var string * * @ORM\Column(name="created_at", type="datetime", nullable=true, options={"comment":"Date de création"}) */ private $createdAt; /** * @var string * * @ORM\Column(name="updated_at", type="datetime", nullable=true, options={"comment":"Date de mise à jour"}) */ private $updatedAt; /** * @var string * * @ORM\Column(name="iban", type="text", nullable=true) */ private $iban; /** * @var string * * @ORM\Column(name="bic", type="text", nullable=true) */ private $bic; /** * @var string * * @ORM\Column(name="agence_domiciliation", type="text", nullable=true) */ private $agenceDomiciliation; /** * @ORM\PrePersist */ public function setCreatedAtValue(): void { $this->setCreatedAt(new \DateTime("now")); $this->setUpdatedAt(new \DateTime("now")); } /** * @ORM\PreUpdate */ public function setUpdatedAtValue(): void { $this->setUpdatedAt(new \DateTime("now")); } public function __toString() { return (string)$this->id; } public function getId(): ?int { return $this->id; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(?\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getUpdatedAt(): ?\DateTimeInterface { return $this->updatedAt; } public function setUpdatedAt(?\DateTimeInterface $updatedAt): self { $this->updatedAt = $updatedAt; return $this; } public function getIban(): ?string { return $this->iban; } public function setIban(?string $iban): self { $this->iban = $iban; return $this; } public function getBic(): ?string { return $this->bic; } public function setBic(?string $bic): self { $this->bic = $bic; return $this; } public function getAgenceDomiciliation(): ?string { return $this->agenceDomiciliation; } public function setAgenceDomiciliation(?string $agenceDomiciliation): self { $this->agenceDomiciliation = $agenceDomiciliation; return $this; }}