src/Entity/Houses/Syndicats.php line 20

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Houses;
  3. use App\Entity\Core\Users;
  4. use App\Entity\Dossiers\Fiches;
  5. use App\Entity\Core\Agencies;
  6. use Doctrine\DBAL\Types\Types;
  7. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  8. use Symfony\Component\Validator\Constraints as Assert;
  9. use Doctrine\ORM\Mapping as ORM;
  10. /**
  11.  * Syndicats
  12.  *
  13.  * @ORM\Table("houses_syndicats")
  14.  * @ORM\Entity(repositoryClass="App\Repository\Houses\SyndicatsRepository")
  15.  * @ORM\HasLifecycleCallbacks()
  16.  */
  17. class Syndicats
  18. {
  19.     /**
  20.      * @var integer
  21.      *
  22.      * @ORM\Column(name="id", type="integer")
  23.      * @ORM\Id
  24.      * @ORM\GeneratedValue(strategy="AUTO")
  25.      */
  26.     protected $id;
  27.     /**
  28.      * @var string
  29.      *
  30.      * @ORM\Column(name="created_at", type="datetime", nullable=true, options={"comment":"Date de création"})
  31.      */
  32.     private $createdAt;
  33.     /**
  34.      * @var string
  35.      *
  36.      * @ORM\Column(name="updated_at", type="datetime", nullable=true, options={"comment":"Date de mise à jour"})
  37.      */
  38.     private $updatedAt;
  39.     /**
  40.      * @var string
  41.      *
  42.      * @ORM\Column(name="reference", type="string", length=255, nullable=true)
  43.      */
  44.     private $reference;
  45.     /**
  46.      * @var string
  47.      *
  48.      * @ORM\Column(name="title", type="string", length=255, nullable=true)
  49.      */
  50.     private $title;
  51.     /**
  52.      * @var string
  53.      *
  54.      * @ORM\Column(name="description", type="text", nullable=true)
  55.      */
  56.     private $description;
  57.     /**
  58.      * @var string
  59.      *
  60.      * @ORM\Column(name="type", type="string", length=255, nullable=true)
  61.      */
  62.     private $type;
  63.     /**
  64.      * @var string
  65.      *
  66.      * @ORM\Column(name="point_x", type="string", length=255, nullable=true)
  67.      */
  68.     private $pointX;
  69.     /**
  70.      * @var string
  71.      *
  72.      * @ORM\Column(name="point_y", type="string", length=255, nullable=true)
  73.      */
  74.     private $pointY;
  75.     /**
  76.      * @var string
  77.      *
  78.      * @ORM\Column(name="address", type="text", nullable=true)
  79.      */
  80.     private $address;
  81.     /**
  82.      * @var string
  83.      *
  84.      * @ORM\Column(name="zipcode", type="text", nullable=true)
  85.      */
  86.     private $zipcode;
  87.     /**
  88.      * @var string
  89.      *
  90.      * @ORM\Column(name="city", type="text", nullable=true)
  91.      */
  92.     private $city;
  93.     /**
  94.      * @var string
  95.      *
  96.      * @ORM\Column(name="country", type="text", nullable=true)
  97.      */
  98.     private $country;
  99.     /**
  100.      * @var \Fiches
  101.      *
  102.      * @ORM\ManyToOne(targetEntity="App\Entity\Dossiers\Fiches")
  103.      * @ORM\JoinColumns({
  104.      *   @ORM\JoinColumn(name="fiche_id", referencedColumnName="id", nullable=true)
  105.      * })
  106.      */
  107.     protected $fiche;
  108.     /**
  109.      * @var \Agencies
  110.      *
  111.      * @ORM\ManyToOne(targetEntity="App\Entity\Core\Agencies")
  112.      * @ORM\JoinColumns({
  113.      *   @ORM\JoinColumn(name="agency_id", referencedColumnName="id", nullable=true)
  114.      * })
  115.      */
  116.     protected $agency;
  117.     /**
  118.      * @ORM\PrePersist
  119.      */
  120.     public function setCreatedAtValue(): void
  121.     {
  122.         $this->setCreatedAt(new \DateTime("now"));
  123.         $this->setUpdatedAt(new \DateTime("now"));
  124.     }
  125.     /**
  126.      * @ORM\PreUpdate
  127.      */
  128.     public function setUpdatedAtValue(): void
  129.     {
  130.         $this->setUpdatedAt(new \DateTime("now"));
  131.     }
  132.     public function __toString()
  133.     {
  134.         return (string)$this->title;
  135.     }
  136.     public function getId(): ?int
  137.     {
  138.         return $this->id;
  139.     }
  140.     public function getCreatedAt(): ?\DateTimeInterface
  141.     {
  142.         return $this->createdAt;
  143.     }
  144.     public function setCreatedAt(?\DateTimeInterface $createdAt): self
  145.     {
  146.         $this->createdAt $createdAt;
  147.         return $this;
  148.     }
  149.     public function getUpdatedAt(): ?\DateTimeInterface
  150.     {
  151.         return $this->updatedAt;
  152.     }
  153.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
  154.     {
  155.         $this->updatedAt $updatedAt;
  156.         return $this;
  157.     }
  158.     public function getReference(): ?string
  159.     {
  160.         return $this->reference;
  161.     }
  162.     public function setReference(?string $reference): self
  163.     {
  164.         $this->reference $reference;
  165.         return $this;
  166.     }
  167.     public function getTitle(): ?string
  168.     {
  169.         return $this->title;
  170.     }
  171.     public function setTitle(?string $title): self
  172.     {
  173.         $this->title $title;
  174.         return $this;
  175.     }
  176.     public function getDescription(): ?string
  177.     {
  178.         return $this->description;
  179.     }
  180.     public function setDescription(?string $description): self
  181.     {
  182.         $this->description $description;
  183.         return $this;
  184.     }
  185.     public function getType(): ?string
  186.     {
  187.         return $this->type;
  188.     }
  189.     public function setType(?string $type): self
  190.     {
  191.         $this->type $type;
  192.         return $this;
  193.     }
  194.     public function getPointX(): ?string
  195.     {
  196.         return $this->pointX;
  197.     }
  198.     public function setPointX(?string $pointX): self
  199.     {
  200.         $this->pointX $pointX;
  201.         return $this;
  202.     }
  203.     public function getPointY(): ?string
  204.     {
  205.         return $this->pointY;
  206.     }
  207.     public function setPointY(?string $pointY): self
  208.     {
  209.         $this->pointY $pointY;
  210.         return $this;
  211.     }
  212.     public function getAddress(): ?string
  213.     {
  214.         return $this->address;
  215.     }
  216.     public function setAddress(?string $address): self
  217.     {
  218.         $this->address $address;
  219.         return $this;
  220.     }
  221.     public function getZipcode(): ?string
  222.     {
  223.         return $this->zipcode;
  224.     }
  225.     public function setZipcode(?string $zipcode): self
  226.     {
  227.         $this->zipcode $zipcode;
  228.         return $this;
  229.     }
  230.     public function getCity(): ?string
  231.     {
  232.         return $this->city;
  233.     }
  234.     public function setCity(?string $city): self
  235.     {
  236.         $this->city $city;
  237.         return $this;
  238.     }
  239.     public function getCountry(): ?string
  240.     {
  241.         return $this->country;
  242.     }
  243.     public function setCountry(?string $country): self
  244.     {
  245.         $this->country $country;
  246.         return $this;
  247.     }
  248.     public function getFiche(): ?Fiches
  249.     {
  250.         return $this->fiche;
  251.     }
  252.     public function setFiche(?Fiches $fiche): self
  253.     {
  254.         $this->fiche $fiche;
  255.         return $this;
  256.     }
  257.     public function getAgency(): ?\App\Entity\Core\Agencies
  258.     {
  259.         return $this->agency;
  260.     }
  261.     public function setAgency(?\App\Entity\Core\Agencies $agency): self
  262.     {
  263.         $this->agency $agency;
  264.         return $this;
  265.     }
  266.     
  267. }