src/Entity/Profile.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity
  7.  */
  8. class Profile
  9. {
  10.     /**
  11.      * @ORM\Id()
  12.      * @ORM\GeneratedValue()
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255, nullable=true)
  18.      */
  19.     private $name;
  20.     /**
  21.      * @ORM\Column(type="string", length=255, nullable=true)
  22.      */
  23.     private $cuit;
  24.     /**
  25.      * @ORM\Column(type="string", length=255, nullable=true)
  26.      */
  27.     private $entityName;
  28.     /**
  29.      * @ORM\Column(type="string", length=255, nullable=true)
  30.      */
  31.     private $type;
  32.     /**
  33.      * @ORM\Column(type="datetime", nullable=true)
  34.      */
  35.     private $updated;
  36.     /**
  37.      * @ORM\Column(type="string", length=255, nullable=true)
  38.      */
  39.     private $otherCity;
  40.     /**
  41.      * @ORM\Column(type="string", length=255, nullable=true)
  42.      */
  43.     private $otherName;
  44.     /**
  45.      * @ORM\Column(type="string", length=255, nullable=true)
  46.      */
  47.     private $otherEmail;
  48.     /**
  49.      * @ORM\Column(type="string", length=255, nullable=true)
  50.      */
  51.     private $otherState;
  52.     /**
  53.      * @ORM\Column(type="string", nullable=true)
  54.      */
  55.     private $timeZone;
  56.     /**
  57.      * @ORM\Column(type="text", nullable=true)
  58.      */
  59.     private $picture;
  60.     /**
  61.      * @ORM\Column(type="string", length=100, nullable=true)
  62.      */
  63.     private $middleName;
  64.     /**
  65.      * @ORM\Column(type="string", length=100)
  66.      */
  67.     private $surname;
  68.     /**
  69.      * @ORM\Column(type="string", length=100)
  70.      */
  71.     private $language;
  72.     /**
  73.      * @ORM\ManyToOne(targetEntity=AnimalSpecie::class)
  74.      */
  75.     private $defaultAnimalSpecie;
  76.     public function __construct()
  77.     {
  78.         $this->timeZone null;
  79.     }
  80.     public function getId(): ?int
  81.     {
  82.         return $this->id;
  83.     }
  84.     public function setId($id)
  85.     {
  86.         $this->id $id;
  87.         return $this;
  88.     }
  89.     public function getName(): ?string
  90.     {
  91.         return $this->name;
  92.     }
  93.     public function setName(string $name): self
  94.     {
  95.         $this->name $name;
  96.         return $this;
  97.     }
  98.     public function getCuit(): ?string
  99.     {
  100.         return $this->cuit;
  101.     }
  102.     public function setCuit(?string $cuit): self
  103.     {
  104.         $this->cuit $cuit;
  105.         return $this;
  106.     }
  107.     public function getEntityName(): ?string
  108.     {
  109.         return $this->entityName;
  110.     }
  111.     public function setEntityName(?string $entityName): self
  112.     {
  113.         $this->entityName $entityName;
  114.         return $this;
  115.     }
  116.     public function getType(): ?string
  117.     {
  118.         return $this->type;
  119.     }
  120.     public function setType(?string $type): self
  121.     {
  122.         $this->type $type;
  123.         return $this;
  124.     }
  125.     public function getUpdated(): ?\DateTimeInterface
  126.     {
  127.         return $this->updated;
  128.     }
  129.     public function setUpdated(?\DateTimeInterface $updated): self
  130.     {
  131.         $this->updated $updated;
  132.         return $this;
  133.     }
  134.     public function getOtherCity(): ?string
  135.     {
  136.         return $this->otherCity;
  137.     }
  138.     public function setOtherCity(?string $otherCity): self
  139.     {
  140.         $this->otherCity $otherCity;
  141.         return $this;
  142.     }
  143.     public function getOtherName(): ?string
  144.     {
  145.         return $this->otherName;
  146.     }
  147.     public function setOtherName(?string $otherName): self
  148.     {
  149.         $this->otherName $otherName;
  150.         return $this;
  151.     }
  152.     public function getOtherEmail(): ?string
  153.     {
  154.         return $this->otherEmail;
  155.     }
  156.     public function setOtherEmail(?string $otherEmail): self
  157.     {
  158.         $this->otherEmail $otherEmail;
  159.         return $this;
  160.     }
  161.     public function getOtherState(): ?string
  162.     {
  163.         return $this->otherState;
  164.     }
  165.     public function setOtherState(?string $otherState): self
  166.     {
  167.         $this->otherState $otherState;
  168.         return $this;
  169.     }
  170.     /**
  171.      * @return mixed
  172.      */
  173.     public function getTimeZone()
  174.     {
  175.         return $this->timeZone;
  176.     }
  177.     /**
  178.      * @param mixed $timeZone
  179.      */
  180.     public function setTimeZone($timeZone): void
  181.     {
  182.         $this->timeZone $timeZone;
  183.     }
  184.     /**
  185.      * @return mixed
  186.      */
  187.     public function getPicture()
  188.     {
  189.         return $this->picture;
  190.     }
  191.     /**
  192.      * @param mixed $picture
  193.      */
  194.     public function setPicture($picture): void
  195.     {
  196.         $this->picture $picture;
  197.     }
  198.     public function getMiddleName(): ?string
  199.     {
  200.         return $this->middleName;
  201.     }
  202.     public function setMiddleName(?string $middleName): self
  203.     {
  204.         $this->middleName $middleName;
  205.         return $this;
  206.     }
  207.     public function getSurname(): ?string
  208.     {
  209.         return $this->surname;
  210.     }
  211.     public function setSurname(string $surname): self
  212.     {
  213.         $this->surname $surname;
  214.         return $this;
  215.     }
  216.     public function getLanguage(): ?string
  217.     {
  218.         return $this->language;
  219.     }
  220.     public function setLanguage(string $language): self
  221.     {
  222.         $this->language $language;
  223.         return $this;
  224.     }
  225.     public function getDefaultAnimalSpecie(): ?AnimalSpecie
  226.     {
  227.         return $this->defaultAnimalSpecie;
  228.     }
  229.     public function setDefaultAnimalSpecie(?AnimalSpecie $defaultAnimalSpecie): self
  230.     {
  231.         $this->defaultAnimalSpecie $defaultAnimalSpecie;
  232.         return $this;
  233.     }
  234.     public function getFullName() {
  235.         return $this->name . ( $this->middleName ' ' $this->middleName '' ) . ' ' $this->surname;
  236.     }
  237. }