<?php
namespace App\Entity;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
*/
class Profile
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $name;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $cuit;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $entityName;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $type;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $updated;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $otherCity;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $otherName;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $otherEmail;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $otherState;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $timeZone;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $picture;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
private $middleName;
/**
* @ORM\Column(type="string", length=100)
*/
private $surname;
/**
* @ORM\Column(type="string", length=100)
*/
private $language;
/**
* @ORM\ManyToOne(targetEntity=AnimalSpecie::class)
*/
private $defaultAnimalSpecie;
public function __construct()
{
$this->timeZone = null;
}
public function getId(): ?int
{
return $this->id;
}
public function setId($id)
{
$this->id = $id;
return $this;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getCuit(): ?string
{
return $this->cuit;
}
public function setCuit(?string $cuit): self
{
$this->cuit = $cuit;
return $this;
}
public function getEntityName(): ?string
{
return $this->entityName;
}
public function setEntityName(?string $entityName): self
{
$this->entityName = $entityName;
return $this;
}
public function getType(): ?string
{
return $this->type;
}
public function setType(?string $type): self
{
$this->type = $type;
return $this;
}
public function getUpdated(): ?\DateTimeInterface
{
return $this->updated;
}
public function setUpdated(?\DateTimeInterface $updated): self
{
$this->updated = $updated;
return $this;
}
public function getOtherCity(): ?string
{
return $this->otherCity;
}
public function setOtherCity(?string $otherCity): self
{
$this->otherCity = $otherCity;
return $this;
}
public function getOtherName(): ?string
{
return $this->otherName;
}
public function setOtherName(?string $otherName): self
{
$this->otherName = $otherName;
return $this;
}
public function getOtherEmail(): ?string
{
return $this->otherEmail;
}
public function setOtherEmail(?string $otherEmail): self
{
$this->otherEmail = $otherEmail;
return $this;
}
public function getOtherState(): ?string
{
return $this->otherState;
}
public function setOtherState(?string $otherState): self
{
$this->otherState = $otherState;
return $this;
}
/**
* @return mixed
*/
public function getTimeZone()
{
return $this->timeZone;
}
/**
* @param mixed $timeZone
*/
public function setTimeZone($timeZone): void
{
$this->timeZone = $timeZone;
}
/**
* @return mixed
*/
public function getPicture()
{
return $this->picture;
}
/**
* @param mixed $picture
*/
public function setPicture($picture): void
{
$this->picture = $picture;
}
public function getMiddleName(): ?string
{
return $this->middleName;
}
public function setMiddleName(?string $middleName): self
{
$this->middleName = $middleName;
return $this;
}
public function getSurname(): ?string
{
return $this->surname;
}
public function setSurname(string $surname): self
{
$this->surname = $surname;
return $this;
}
public function getLanguage(): ?string
{
return $this->language;
}
public function setLanguage(string $language): self
{
$this->language = $language;
return $this;
}
public function getDefaultAnimalSpecie(): ?AnimalSpecie
{
return $this->defaultAnimalSpecie;
}
public function setDefaultAnimalSpecie(?AnimalSpecie $defaultAnimalSpecie): self
{
$this->defaultAnimalSpecie = $defaultAnimalSpecie;
return $this;
}
public function getFullName() {
return $this->name . ( $this->middleName ? ' ' . $this->middleName : '' ) . ' ' . $this->surname;
}
}