src/Entity/ContactInformation.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\ObjectValue\Laboratory;
  4. use App\Entity\ObjectValue\Store;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\Component\HttpFoundation\File\File;
  7. use Vich\UploaderBundle\Mapping\Annotation as Vich;
  8. /**
  9.  * @ORM\Entity
  10.  * @Vich\Uploadable
  11.  */
  12. class ContactInformation
  13. {
  14.     /**
  15.      * @ORM\Id
  16.      * @ORM\GeneratedValue
  17.      * @ORM\Column(type="integer")
  18.      *
  19.      * @var int
  20.      */
  21.     protected $id;
  22.     /**
  23.      * @ORM\Column(type="datetime", nullable=true)
  24.      *
  25.      * @var \DateTime
  26.      */
  27.     protected $updatedAt;
  28.     /**
  29.      * @ORM\Column(type="string", nullable=true)
  30.      *
  31.      * @var string
  32.      */
  33.     protected $cscLogo;
  34.     /**
  35.      * @Vich\UploadableField(mapping="contact_information", fileNameProperty="cscLogo")
  36.      *
  37.      * @var File
  38.      */
  39.     protected $cscLogoFile;
  40.     /**
  41.      * @ORM\Column(type="string", nullable=true)
  42.      *
  43.      * @var string
  44.      */
  45.     protected $cscAddress;
  46.     /**
  47.      * @ORM\Column(type="string", nullable=true)
  48.      *
  49.      * @var string
  50.      */
  51.     protected $cscPhone;
  52.     /**
  53.      * @ORM\Column(type="string", nullable=true)
  54.      *
  55.      * @var string
  56.      */
  57.     protected $cscPhoneDescription;
  58.     /**
  59.      * @ORM\Column(type="string", nullable=true)
  60.      *
  61.      * @var string
  62.      */
  63.     protected $cscAttendance;
  64.     /**
  65.      * @Vich\UploadableField(mapping="contact_information", fileNameProperty="cscAttendance")
  66.      *
  67.      * @var File
  68.      */
  69.     protected $cscAttendanceFile;
  70.     /**
  71.      * @ORM\Column(type="string", nullable=true)
  72.      *
  73.      * @var string
  74.      */
  75.     protected $cscHours;
  76.     /**
  77.      * @ORM\Column(type="string", nullable=true)
  78.      *
  79.      * @var string
  80.      */
  81.     protected $cscEmail;
  82.     /**
  83.      * @ORM\Column(type="string", nullable=true)
  84.      *
  85.      * @var string
  86.      */
  87.     protected $potabilizationPhone;
  88.     /**
  89.      * @ORM\Column(type="string", nullable=true)
  90.      *
  91.      * @var string
  92.      */
  93.     protected $potabilizationPhoneDescription;
  94.     /**
  95.      * @ORM\Column(type="string", nullable=true)
  96.      *
  97.      * @var string
  98.      */
  99.     protected $potabilizationHours;
  100.     /**
  101.      * @ORM\Column(type="string", nullable=true)
  102.      *
  103.      * @var string
  104.      */
  105.     protected $potabilizationEmail;
  106.     /**
  107.      * @ORM\Embedded(class="App\Entity\ObjectValue\Store")
  108.      *
  109.      * @var Store
  110.      */
  111.     protected $store1;
  112.     /**
  113.      * @ORM\Embedded(class="App\Entity\ObjectValue\Store")
  114.      *
  115.      * @var Store
  116.      */
  117.     protected $store2;
  118.     /**
  119.      * @ORM\Embedded(class="App\Entity\ObjectValue\Store")
  120.      *
  121.      * @var Store
  122.      */
  123.     protected $store3;
  124.     /**
  125.      * @ORM\Column(type="string", nullable=true)
  126.      *
  127.      * @var string
  128.      */
  129.     protected $catalog1Label;
  130.     /**
  131.      * @ORM\Column(type="string", nullable=true)
  132.      *
  133.      * @var string
  134.      */
  135.     protected $catalog1Url;
  136.     /**
  137.      * @ORM\Column(type="string", nullable=true)
  138.      *
  139.      * @var string
  140.      */
  141.     protected $catalog2Label;
  142.     /**
  143.      * @ORM\Column(type="string", nullable=true)
  144.      *
  145.      * @var string
  146.      */
  147.     protected $catalog2Url;
  148.     /**
  149.      * @ORM\Column(type="string", nullable=true)
  150.      *
  151.      * @var string
  152.      */
  153.     protected $catalog3Label;
  154.     /**
  155.      * @ORM\Column(type="string", nullable=true)
  156.      *
  157.      * @var string
  158.      */
  159.     protected $catalog3Url;
  160.     /**
  161.      * @ORM\Embedded(class="App\Entity\ObjectValue\Laboratory")
  162.      *
  163.      * @var Laboratory
  164.      */
  165.     protected $waterLaboratory;
  166.     /**
  167.      * @ORM\Embedded(class="App\Entity\ObjectValue\Laboratory")
  168.      *
  169.      * @var Laboratory
  170.      */
  171.     protected $hydraulicLaboratory;
  172.     /**
  173.      * @ORM\Embedded(class="App\Entity\ObjectValue\Laboratory")
  174.      *
  175.      * @var Laboratory
  176.      */
  177.     protected $geotechLaboratory;
  178.     public function getId(): int
  179.     {
  180.         return $this->id;
  181.     }
  182.     /**
  183.      * @return ContactInformation
  184.      */
  185.     public function setId(int $id): self
  186.     {
  187.         $this->id $id;
  188.         return $this;
  189.     }
  190.     public function getCscPhoneDescription(): ?string
  191.     {
  192.         return $this->cscPhoneDescription;
  193.     }
  194.     /**
  195.      * @return ContactInformation
  196.      */
  197.     public function setCscPhoneDescription(?string $cscPhoneDescription): self
  198.     {
  199.         $this->cscPhoneDescription $cscPhoneDescription;
  200.         return $this;
  201.     }
  202.     public function getCscLogo(): ?string
  203.     {
  204.         return $this->cscLogo;
  205.     }
  206.     /**
  207.      * @return ContactInformation
  208.      */
  209.     public function setCscLogo(?string $cscLogo): self
  210.     {
  211.         $this->cscLogo $cscLogo;
  212.         return $this;
  213.     }
  214.     public function getCscLogoFile(): ?File
  215.     {
  216.         return $this->cscLogoFile;
  217.     }
  218.     /**
  219.      * @throws \Exception
  220.      *
  221.      * @return ContactInformation
  222.      */
  223.     public function setCscLogoFile(?File $cscLogoFile): self
  224.     {
  225.         $this->cscLogoFile $cscLogoFile;
  226.         if ($cscLogoFile) {
  227.             $this->updatedAt = new \DateTime('now');
  228.         }
  229.         return $this;
  230.     }
  231.     public function getCscAddress(): ?string
  232.     {
  233.         return $this->cscAddress;
  234.     }
  235.     /**
  236.      * @return ContactInformation
  237.      */
  238.     public function setCscAddress(?string $cscAddress): self
  239.     {
  240.         $this->cscAddress $cscAddress;
  241.         return $this;
  242.     }
  243.     public function getCscPhone(): ?string
  244.     {
  245.         return $this->cscPhone;
  246.     }
  247.     /**
  248.      * @return ContactInformation
  249.      */
  250.     public function setCscPhone(?string $cscPhone): self
  251.     {
  252.         $this->cscPhone $cscPhone;
  253.         return $this;
  254.     }
  255.     public function getCscAttendance(): ?string
  256.     {
  257.         return $this->cscAttendance;
  258.     }
  259.     /**
  260.      * @return ContactInformation
  261.      */
  262.     public function setCscAttendance(?string $cscAttendance): self
  263.     {
  264.         $this->cscAttendance $cscAttendance;
  265.         return $this;
  266.     }
  267.     public function getCscAttendanceFile(): ?File
  268.     {
  269.         return $this->cscAttendanceFile;
  270.     }
  271.     /**
  272.      * @throws \Exception
  273.      *
  274.      * @return ContactInformation
  275.      */
  276.     public function setCscAttendanceFile(?File $cscAttendanceFile): self
  277.     {
  278.         $this->cscAttendanceFile $cscAttendanceFile;
  279.         if ($cscAttendanceFile) {
  280.             $this->updatedAt = new \DateTime('now');
  281.         }
  282.         return $this;
  283.     }
  284.     public function getCscHours(): ?string
  285.     {
  286.         return $this->cscHours;
  287.     }
  288.     /**
  289.      * @return ContactInformation
  290.      */
  291.     public function setCscHours(?string $cscHours): self
  292.     {
  293.         $this->cscHours $cscHours;
  294.         return $this;
  295.     }
  296.     public function getCscEmail(): ?string
  297.     {
  298.         return $this->cscEmail;
  299.     }
  300.     /**
  301.      * @return ContactInformation
  302.      */
  303.     public function setCscEmail(?string $cscEmail): self
  304.     {
  305.         $this->cscEmail $cscEmail;
  306.         return $this;
  307.     }
  308.     public function getPotabilizationPhone(): ?string
  309.     {
  310.         return $this->potabilizationPhone;
  311.     }
  312.     /**
  313.      * @return ContactInformation
  314.      */
  315.     public function setPotabilizationPhone(?string $potabilizationPhone): self
  316.     {
  317.         $this->potabilizationPhone $potabilizationPhone;
  318.         return $this;
  319.     }
  320.     public function getPotabilizationPhoneDescription(): ?string
  321.     {
  322.         return $this->potabilizationPhoneDescription;
  323.     }
  324.     /**
  325.      * @return ContactInformation
  326.      */
  327.     public function setPotabilizationPhoneDescription(?string $potabilizationPhoneDescription): self
  328.     {
  329.         $this->potabilizationPhoneDescription $potabilizationPhoneDescription;
  330.         return $this;
  331.     }
  332.     public function getPotabilizationHours(): ?string
  333.     {
  334.         return $this->potabilizationHours;
  335.     }
  336.     /**
  337.      * @return ContactInformation
  338.      */
  339.     public function setPotabilizationHours(?string $potabilizationHours): self
  340.     {
  341.         $this->potabilizationHours $potabilizationHours;
  342.         return $this;
  343.     }
  344.     public function getPotabilizationEmail(): ?string
  345.     {
  346.         return $this->potabilizationEmail;
  347.     }
  348.     /**
  349.      * @return ContactInformation
  350.      */
  351.     public function setPotabilizationEmail(?string $potabilizationEmail): self
  352.     {
  353.         $this->potabilizationEmail $potabilizationEmail;
  354.         return $this;
  355.     }
  356.     /**
  357.      * @return Store
  358.      */
  359.     public function getStore1(): ?Store
  360.     {
  361.         return $this->store1;
  362.     }
  363.     /**
  364.      * @return ContactInformation
  365.      */
  366.     public function setStore1(Store $store1): self
  367.     {
  368.         $this->store1 $store1;
  369.         return $this;
  370.     }
  371.     /**
  372.      * @return Store
  373.      */
  374.     public function getStore2(): ?Store
  375.     {
  376.         return $this->store2;
  377.     }
  378.     /**
  379.      * @return ContactInformation
  380.      */
  381.     public function setStore2(Store $store2): self
  382.     {
  383.         $this->store2 $store2;
  384.         return $this;
  385.     }
  386.     /**
  387.      * @return Store
  388.      */
  389.     public function getStore3(): ?Store
  390.     {
  391.         return $this->store3;
  392.     }
  393.     /**
  394.      * @return ContactInformation
  395.      */
  396.     public function setStore3(Store $store3): self
  397.     {
  398.         $this->store3 $store3;
  399.         return $this;
  400.     }
  401.     public function getCatalog1Label(): ?string
  402.     {
  403.         return $this->catalog1Label;
  404.     }
  405.     public function setCatalog1Label(?string $catalog1Label): ContactInformation
  406.     {
  407.         $this->catalog1Label $catalog1Label;
  408.         return $this;
  409.     }
  410.     public function getCatalog1Url(): ?string
  411.     {
  412.         return $this->catalog1Url;
  413.     }
  414.     /**
  415.      * @return ContactInformation
  416.      */
  417.     public function setCatalog1Url(?string $catalog1Url): self
  418.     {
  419.         $this->catalog1Url $catalog1Url;
  420.         return $this;
  421.     }
  422.     public function getCatalog2Label(): ?string
  423.     {
  424.         return $this->catalog2Label;
  425.     }
  426.     /**
  427.      * @return ContactInformation
  428.      */
  429.     public function setCatalog2Label(?string $catalog2Label): self
  430.     {
  431.         $this->catalog2Label $catalog2Label;
  432.         return $this;
  433.     }
  434.     public function getCatalog2Url(): ?string
  435.     {
  436.         return $this->catalog2Url;
  437.     }
  438.     /**
  439.      * @return ContactInformation
  440.      */
  441.     public function setCatalog2Url(?string $catalog2Url): self
  442.     {
  443.         $this->catalog2Url $catalog2Url;
  444.         return $this;
  445.     }
  446.     public function getCatalog3Label(): ?string
  447.     {
  448.         return $this->catalog3Label;
  449.     }
  450.     /**
  451.      * @return ContactInformation
  452.      */
  453.     public function setCatalog3Label(?string $catalog3Label): self
  454.     {
  455.         $this->catalog3Label $catalog3Label;
  456.         return $this;
  457.     }
  458.     public function getCatalog3Url(): ?string
  459.     {
  460.         return $this->catalog3Url;
  461.     }
  462.     /**
  463.      * @return ContactInformation
  464.      */
  465.     public function setCatalog3Url(?string $catalog3Url): self
  466.     {
  467.         $this->catalog3Url $catalog3Url;
  468.         return $this;
  469.     }
  470.     public function getWaterLaboratory(): Laboratory
  471.     {
  472.         return $this->waterLaboratory;
  473.     }
  474.     /**
  475.      * @return ContactInformation
  476.      */
  477.     public function setWaterLaboratory(Laboratory $waterLaboratory): self
  478.     {
  479.         $this->waterLaboratory $waterLaboratory;
  480.         return $this;
  481.     }
  482.     public function getHydraulicLaboratory(): Laboratory
  483.     {
  484.         return $this->hydraulicLaboratory;
  485.     }
  486.     /**
  487.      * @return ContactInformation
  488.      */
  489.     public function setHydraulicLaboratory(Laboratory $hydraulicLaboratory): self
  490.     {
  491.         $this->hydraulicLaboratory $hydraulicLaboratory;
  492.         return $this;
  493.     }
  494.     public function getGeotechLaboratory(): Laboratory
  495.     {
  496.         return $this->geotechLaboratory;
  497.     }
  498.     /**
  499.      * @return ContactInformation
  500.      */
  501.     public function setGeotechLaboratory(Laboratory $geotechLaboratory): self
  502.     {
  503.         $this->geotechLaboratory $geotechLaboratory;
  504.         return $this;
  505.     }
  506. }