src/Entity/Contact.php line 8

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. #[ORM\Entity]
  5. class Contact
  6. {
  7.     #[ORM\Id]
  8.     #[ORM\Column(type"integer")]
  9.     #[ORM\GeneratedValue(strategy"AUTO")]
  10.     private $id;
  11.     #[ORM\Column(type"string"length255nullabletrue)]
  12.     private $email;
  13.     #[ORM\Column(type"string"length255nullabletrue)]
  14.     private $phone;
  15.     #[ORM\Column(type"string"length255nullabletrue)]
  16.     private $facebook;
  17.     #[ORM\Column(type"string"length255nullabletrue)]
  18.     private $instagram;
  19.     #[ORM\Column(type"string"length255nullabletrue)]
  20.     private $address;
  21.     #[ORM\Column(type"string"length255nullabletrue)]
  22.     private $city;
  23.     #[ORM\Column(type"integer"length10nullabletrue)]
  24.     private $zip;
  25.     #[ORM\Column(length255nullabletrue)]
  26.     private ?string $website null;
  27.     /**
  28.      * @return mixed
  29.      */
  30.     public function getId()
  31.     {
  32.         return $this->id;
  33.     }
  34.     /**
  35.      * @param mixed $id
  36.      */
  37.     public function setId($id): void
  38.     {
  39.         $this->id $id;
  40.     }
  41.     /**
  42.      * @return mixed
  43.      */
  44.     public function getEmail()
  45.     {
  46.         return $this->email;
  47.     }
  48.     /**
  49.      * @param mixed $email
  50.      */
  51.     public function setEmail($email): void
  52.     {
  53.         $this->email $email;
  54.     }
  55.     /**
  56.      * @return mixed
  57.      */
  58.     public function getPhone()
  59.     {
  60.         return $this->phone;
  61.     }
  62.     /**
  63.      * @param mixed $phone
  64.      */
  65.     public function setPhone($phone): void
  66.     {
  67.         $this->phone $phone;
  68.     }
  69.     /**
  70.      * @return mixed
  71.      */
  72.     public function getFacebook()
  73.     {
  74.         return $this->facebook;
  75.     }
  76.     /**
  77.      * @param mixed $facebook
  78.      */
  79.     public function setFacebook($facebook): void
  80.     {
  81.         $this->facebook $facebook;
  82.     }
  83.     /**
  84.      * @return mixed
  85.      */
  86.     public function getInstagram()
  87.     {
  88.         return $this->instagram;
  89.     }
  90.     /**
  91.      * @param mixed $instagram
  92.      */
  93.     public function setInstagram($instagram): void
  94.     {
  95.         $this->instagram $instagram;
  96.     }
  97.     /**
  98.      * @return mixed
  99.      */
  100.     public function getAddress()
  101.     {
  102.         return $this->address;
  103.     }
  104.     /**
  105.      * @param mixed $address
  106.      */
  107.     public function setAddress($address): void
  108.     {
  109.         $this->address $address;
  110.     }
  111.     /**
  112.      * @return mixed
  113.      */
  114.     public function getCity()
  115.     {
  116.         return $this->city;
  117.     }
  118.     /**
  119.      * @param mixed $city
  120.      */
  121.     public function setCity($city): void
  122.     {
  123.         $this->city $city;
  124.     }
  125.     /**
  126.      * @return mixed
  127.      */
  128.     public function getZip()
  129.     {
  130.         return $this->zip;
  131.     }
  132.     /**
  133.      * @param mixed $zip
  134.      */
  135.     public function setZip($zip): void
  136.     {
  137.         $this->zip $zip;
  138.     }
  139.     public function getWebsite(): ?string
  140.     {
  141.         return $this->website;
  142.     }
  143.     public function setWebsite(?string $website): static
  144.     {
  145.         $this->website $website;
  146.         return $this;
  147.     }
  148. }