src/Entity/Core/Rib.php line 22

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Core;
  3. use Doctrine\DBAL\Types\Types;
  4. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Vich\UploaderBundle\Mapping\Annotation as Vich;
  8. use Symfony\Component\HttpFoundation\File\File;
  9. use Symfony\Component\HttpFoundation\File\UploadedFile;
  10. use Vich\UploaderBundle\Entity\File as EmbeddedFile;
  11. /**
  12.  * RIB
  13.  *
  14.  * @ORM\Table("core_rib")
  15.  * @ORM\Entity(repositoryClass="App\Repository\Core\RibRepository")
  16.  * @ORM\HasLifecycleCallbacks()
  17.  * @Vich\Uploadable
  18.  */
  19. class Rib
  20. {
  21.     /**
  22.      * @var integer
  23.      *
  24.      * @ORM\Column(name="id", type="integer")
  25.      * @ORM\Id
  26.      * @ORM\GeneratedValue(strategy="AUTO")
  27.      */
  28.     protected $id;
  29.     /**
  30.      * @var string
  31.      *
  32.      * @ORM\Column(name="created_at", type="datetime", nullable=true, options={"comment":"Date de création"})
  33.      */
  34.     private $createdAt;
  35.     /**
  36.      * @var string
  37.      *
  38.      * @ORM\Column(name="updated_at", type="datetime", nullable=true, options={"comment":"Date de mise à jour"})
  39.      */
  40.     private $updatedAt;
  41.     /**
  42.      * @var string
  43.      *
  44.      * @ORM\Column(name="iban", type="text", nullable=true)
  45.      */
  46.     private $iban;
  47.     /**
  48.      * @var string
  49.      *
  50.      * @ORM\Column(name="bic", type="text", nullable=true)
  51.      */
  52.     private $bic;
  53.     /**
  54.      * @var string
  55.      *
  56.      * @ORM\Column(name="agence_domiciliation", type="text", nullable=true)
  57.      */
  58.     private $agenceDomiciliation;
  59.     /**
  60.      * @ORM\PrePersist
  61.      */
  62.     public function setCreatedAtValue(): void
  63.     {
  64.         $this->setCreatedAt(new \DateTime("now"));
  65.         $this->setUpdatedAt(new \DateTime("now"));
  66.     }
  67.     /**
  68.      * @ORM\PreUpdate
  69.      */
  70.     public function setUpdatedAtValue(): void
  71.     {
  72.         $this->setUpdatedAt(new \DateTime("now"));
  73.     }
  74.     public function __toString()
  75.     {
  76.         return (string)$this->id;
  77.     }
  78.     public function getId(): ?int
  79.     {
  80.         return $this->id;
  81.     }
  82.     public function getCreatedAt(): ?\DateTimeInterface
  83.     {
  84.         return $this->createdAt;
  85.     }
  86.     public function setCreatedAt(?\DateTimeInterface $createdAt): self
  87.     {
  88.         $this->createdAt $createdAt;
  89.         return $this;
  90.     }
  91.     public function getUpdatedAt(): ?\DateTimeInterface
  92.     {
  93.         return $this->updatedAt;
  94.     }
  95.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
  96.     {
  97.         $this->updatedAt $updatedAt;
  98.         return $this;
  99.     }
  100.     public function getIban(): ?string
  101.     {
  102.         return $this->iban;
  103.     }
  104.     public function setIban(?string $iban): self
  105.     {
  106.         $this->iban $iban;
  107.         return $this;
  108.     }
  109.     public function getBic(): ?string
  110.     {
  111.         return $this->bic;
  112.     }
  113.     public function setBic(?string $bic): self
  114.     {
  115.         $this->bic $bic;
  116.         return $this;
  117.     }
  118.     public function getAgenceDomiciliation(): ?string
  119.     {
  120.         return $this->agenceDomiciliation;
  121.     }
  122.     public function setAgenceDomiciliation(?string $agenceDomiciliation): self
  123.     {
  124.         $this->agenceDomiciliation $agenceDomiciliation;
  125.         return $this;
  126.     }
  127. }