src/Entity/Configuration.php line 24

Open in your IDE?
  1. <?php
  2. /**
  3.  * Created by PhpStorm.
  4.  * User: mfigueroa
  5.  * Date: 03/09/2018
  6.  * Time: 17:53
  7.  */
  8. namespace App\Entity;
  9. use App\Repository\ConfigurationRepository;
  10. use Doctrine\Common\Collections\ArrayCollection;
  11. use Doctrine\Common\Collections\Collection;
  12. use Doctrine\DBAL\Types\Types;
  13. use Doctrine\ORM\Mapping as ORM;
  14. use Symfony\Component\Validator\Constraints as Assert;
  15. use Symfony\Bridge\Doctrine\Validator\Constraints as DoctrineAssert;
  16. /**
  17.  * @ORM\Entity(repositoryClass=ConfigurationRepository::class)
  18.  * @ORM\Table("configuration")
  19.  */
  20. class Configuration
  21. {
  22.     /**
  23.      * @ORM\Id
  24.      * @ORM\Column(type="integer")
  25.      * @ORM\GeneratedValue(strategy="AUTO")
  26.      */
  27.     protected $id;
  28.     /**
  29.      * @var string $name
  30.      *
  31.      * @ORM\Column(type="string", nullable=true)
  32.      */
  33.     protected $name;
  34.     /**
  35.      * @var string $email
  36.      *
  37.      * @ORM\Column(type="string", nullable=true)
  38.      */
  39.     protected $email;
  40.     /**
  41.     * @var string $email_receivers
  42.     *
  43.     * @ORM\Column(type="string", nullable=true)
  44.     */
  45.     protected $email_receivers;
  46.     /**
  47.      * @var string $phone
  48.      *
  49.      * @ORM\Column(type="string", nullable=true)
  50.      */
  51.     protected $phone;
  52.     /**
  53.     * @var string $url_instagram
  54.     *
  55.     * @ORM\Column(type="string", nullable=true)
  56.     */
  57.     protected $url_instagram;
  58.     /**
  59.     * @var string $address
  60.     *
  61.     * @ORM\Column(type="string", nullable=true)
  62.     */
  63.     protected $address;
  64.     /**
  65.     * @var string $schedule
  66.     *
  67.     * @ORM\Column(type="string", nullable=true)
  68.     */
  69.     protected $schedule;
  70.     public function __toString(): string
  71.     {
  72.         return $this->name;
  73.     }
  74.     public function getId(): ?int
  75.     {
  76.         return $this->id;
  77.     }
  78.     public function getName(): ?string
  79.     {
  80.         return $this->name;
  81.     }
  82.     public function setName(?string $name): static
  83.     {
  84.         $this->name $name;
  85.         return $this;
  86.     }
  87.     public function getEmail(): ?string
  88.     {
  89.         return $this->email;
  90.     }
  91.     public function setEmail(?string $email): static
  92.     {
  93.         $this->email $email;
  94.         return $this;
  95.     }
  96.     public function getEmailReceivers(): ?string
  97.     {
  98.         return $this->email_receivers;
  99.     }
  100.     public function setEmailReceivers(?string $email_receivers): static
  101.     {
  102.         $this->email_receivers $email_receivers;
  103.         return $this;
  104.     }
  105.     public function getPhone(): ?string
  106.     {
  107.         return $this->phone;
  108.     }
  109.     public function setPhone(?string $phone): static
  110.     {
  111.         $this->phone $phone;
  112.         return $this;
  113.     }
  114.     public function getUrlInstagram(): ?string
  115.     {
  116.         return $this->url_instagram;
  117.     }
  118.     public function setUrlInstagram(?string $url_instagram): static
  119.     {
  120.         $this->url_instagram $url_instagram;
  121.         return $this;
  122.     }
  123.     public function getAddress(): ?string
  124.     {
  125.         return $this->address;
  126.     }
  127.     public function setAddress(?string $address): static
  128.     {
  129.         $this->address $address;
  130.         return $this;
  131.     }
  132.     public function getSchedule(): ?string
  133.     {
  134.         return $this->schedule;
  135.     }
  136.     public function setSchedule(?string $schedule): static
  137.     {
  138.         $this->schedule $schedule;
  139.         return $this;
  140.     }
  141. }