<?php
namespace App\Model\User;
use JMS\Serializer\Annotation as Serializer;
class Referent
{
/**
* @var string|null
* @Serializer\Type("string")
* @Serializer\Groups({
* "get_user_referents",
* "get_user",
* })
*/
private ?string $id = null;
/**
* @var string|null
* @Serializer\Type("string")
* @Serializer\Groups({
* "get_user_referents",
* })
*/
private ?string $firstName;
/**
* @var string|null
* @Serializer\Type("string")
* @Serializer\Groups({
* "get_user_referents",
* })
*/
private ?string $lastName;
/**
* @var string|null
* @Serializer\Type("string")
*/
private ?string $phoneNumber;
/**
* @var string|null
* @Serializer\Type("string")
*/
private ?string $street;
/**
* @var string|null
* @Serializer\Type("string")
*/
private ?string $complement = null;
/**
* @var string|null
* @Serializer\Type("string")
*/
private ?string $postalCode;
/**
* @var string|null
* @Serializer\Type("string")
*/
private ?string $city;
/**
* @var string|null
* @Serializer\Type("string")
* @Serializer\Groups ({
* "get_user",
* })
*/
private ?string $email;
/**
* @var string|null
* @Serializer\Type("string")
* @Serializer\Groups({
* "get_user_referents",
* "get_user",
* })
*/
private ?string $companyName;
/**
* @return string|null
*/
public function getId(): ?string
{
return $this->id;
}
/**
* @return string
*/
public function getFirstName(): ?string
{
return $this->firstName;
}
/**
* @return string
*/
public function getLastName(): ?string
{
return $this->lastName;
}
/**
* @return string
*/
public function getFullName(): string
{
return $this->firstName . ' ' . $this->lastName;
}
/**
* @return string|null
*/
public function getPhoneNumber(): ?string
{
return $this->phoneNumber;
}
/**
* @return string|null
*/
public function getStreet(): ?string
{
return $this->street;
}
/**
* @return string|null
*/
public function getComplement(): ?string
{
return $this->complement;
}
/**
* @return string|null
*/
public function getPostalCode(): ?string
{
return $this->postalCode;
}
/**
* @return string|null
*/
public function getCity(): ?string
{
return $this->city;
}
/**
* @return string|null
*/
public function getEmail(): ?string
{
return $this->email;
}
public function getCompanyName(): ?string
{
return $this->companyName;
}
}