src/Entity/Client.php line 8

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
  4. use Symfony\Component\Security\Core\User\UserInterface;
  5. class Client implements UserInterfacePasswordAuthenticatedUserInterface
  6. {
  7.     private $clientId;
  8.     private $serviceId;
  9.     private $email;
  10.     private $apiToken;
  11.     private $limitToken;
  12.     private $roles = [];
  13.     /**
  14.      * @var string The hashed password
  15.      */
  16.     private $password;
  17.     private $genre;
  18.     private $firstName;
  19.     private $lastName;
  20.     private $address;
  21.     private $cityCode;
  22.     private $city;
  23.     private $country;
  24.     private $phoneNumber;
  25.     private $birthDay;
  26.     private $birthPlace;
  27.     private $solde;
  28.     private $credit;
  29.     private $code;
  30.     private $addressIp;
  31.     private $social;
  32.     private $socialUid;
  33.     public function getServiceId(): ?string
  34.     {
  35.         return $this->serviceId;
  36.     }
  37.     public function setServiceId(string $serviceId): self
  38.     {
  39.         $this->serviceId $serviceId;
  40.         return $this;
  41.     }
  42.     
  43.     public function getAddressIp(): ?string
  44.     {
  45.         return $this->addressIp;
  46.     }
  47.     public function setAddressIp(string $addressIp): self
  48.     {
  49.         $this->addressIp $addressIp;
  50.         return $this;
  51.     }
  52.     public function getClientId(): ?string
  53.     {
  54.         return $this->clientId;
  55.     }
  56.     public function setClientId(string $clientId): self
  57.     {
  58.         $this->clientId $clientId;
  59.         return $this;
  60.     }
  61.     public function getFirstName(): ?string
  62.     {
  63.         return $this->firstName;
  64.     }
  65.     public function setFirstName(string $firstName): self
  66.     {
  67.         $this->firstName $firstName;
  68.         return $this;
  69.     }
  70.     public function getApiToken(): ?string
  71.     {
  72.         return $this->apiToken;
  73.     }
  74.     public function setApiToken(string $apiToken): self
  75.     {
  76.         $this->apiToken $apiToken;
  77.         return $this;
  78.     }
  79.     public function getLimitToken(): ?string
  80.     {
  81.         return $this->limitToken;
  82.     }
  83.     public function setLimitToken(string $limitToken): self
  84.     {
  85.         $this->firlimitTokenstName $limitToken;
  86.         return $this;
  87.     }
  88.     public function getLastName(): ?string
  89.     {
  90.         return $this->lastName;
  91.     }
  92.     public function setLastName(string $lastName): self
  93.     {
  94.         $this->lastName $lastName;
  95.         return $this;
  96.     }
  97.     public function getAddress(): ?string
  98.     {
  99.         return $this->address;
  100.     }
  101.     public function setAddress(string $address): self
  102.     {
  103.         $this->address $address;
  104.         return $this;
  105.     }
  106.     public function getCityCode(): ?int
  107.     {
  108.         return $this->cityCode;
  109.     }
  110.     public function setCityCode(string $cityCode): self
  111.     {
  112.         $this->cityCode $cityCode;
  113.         return $this;
  114.     }
  115.     public function getCity(): ?string
  116.     {
  117.         return $this->city;
  118.     }
  119.     public function setCity(string $city): self
  120.     {
  121.         $this->city $city;
  122.         return $this;
  123.     }
  124.     public function getCountry(): ?string
  125.     {
  126.         return $this->country;
  127.     }
  128.     public function setCountry(string $country): self
  129.     {
  130.         $this->country $country;
  131.         return $this;
  132.     }
  133.     public function getGenre(): ?string
  134.     {
  135.         return $this->genre;
  136.     }
  137.     public function setGenre(string $genre): self
  138.     {
  139.         $this->genre $genre;
  140.         return $this;
  141.     }
  142.     public function getPhoneNumber(): ?string
  143.     {
  144.         return $this->phoneNumber;
  145.     }
  146.     public function setPhoneNumber(string $phoneNumber): self
  147.     {
  148.         $this->phoneNumber $phoneNumber;
  149.         return $this;
  150.     }
  151.     public function getSolde(): ?int
  152.     {
  153.         return $this->solde;
  154.     }
  155.     public function setSolde(string $solde): self
  156.     {
  157.         $this->solde $solde;
  158.         return $this;
  159.     }
  160.     public function getCredit(): ?int
  161.     {
  162.         return $this->credit;
  163.     }
  164.     public function setCredit(string $credit): self
  165.     {
  166.         $this->credit $credit;
  167.         return $this;
  168.     }
  169.     public function getCode(): ?int
  170.     {
  171.         return $this->code;
  172.     }
  173.     public function setCode(string $code): self
  174.     {
  175.         $this->code $code;
  176.         return $this;
  177.     }
  178.     public function getEmail(): ?string
  179.     {
  180.         return $this->email;
  181.     }
  182.     public function setEmail(string $email): self
  183.     {
  184.         $this->email $email;
  185.         return $this;
  186.     }
  187.     /**
  188.      * A visual identifier that represents this user.
  189.      *
  190.      * @see UserInterface
  191.      */
  192.     public function getUserIdentifier(): string
  193.     {
  194.         return (string) $this->email;
  195.     }
  196.     /**
  197.      * @deprecated since Symfony 5.3, use getUserIdentifier instead
  198.      */
  199.     public function getUsername(): string
  200.     {
  201.         return (string) $this->email;
  202.     }
  203.     /**
  204.      * @see UserInterface
  205.      */
  206.     public function getRoles(): array
  207.     {
  208.         $roles $this->roles;
  209.         return array_unique($roles);
  210.     }
  211.     public function setRoles(array $roles): self
  212.     {
  213.         $this->roles $roles;
  214.         return $this;
  215.     }
  216.     /**
  217.      * @see PasswordAuthenticatedUserInterface
  218.      */
  219.     public function getPassword(): string
  220.     {
  221.         return $this->password;
  222.     }
  223.     public function setPassword(string $password): self
  224.     {
  225.         $this->password $password;
  226.         return $this;
  227.     }
  228.     /**
  229.      * Returning a salt is only needed, if you are not using a modern
  230.      * hashing algorithm (e.g. bcrypt or sodium) in your security.yaml.
  231.      *
  232.      * @see UserInterface
  233.      */
  234.     public function getSalt(): ?string
  235.     {
  236.         return null;
  237.     }
  238.     /**
  239.      * @see UserInterface
  240.      */
  241.     public function eraseCredentials()
  242.     {
  243.         // If you store any temporary, sensitive data on the user, clear it here
  244.         // $this->plainPassword = null;
  245.     }
  246.     public function getEmailsSend(): ?array
  247.     {
  248.         return $this->emailsSend;
  249.     }
  250.     public function setEmailsSend(array $emailsSend): self
  251.     {
  252.         $this->emailsSend $emailsSend;
  253.         return $this;
  254.     }
  255.     public function getEmailsRecieved(): ?array
  256.     {
  257.         return $this->emailsRecieved;
  258.     }
  259.     public function setEmailsRecieved(array $emailsRecieved): self
  260.     {
  261.         $this->emailsRecieved $emailsRecieved;
  262.         return $this;
  263.     }
  264.     public function getSocial(): ?string
  265.     {
  266.         return $this->social;
  267.     }
  268.     public function setSocial(string $social): self
  269.     {
  270.         $this->social $social;
  271.         return $this;
  272.     }
  273.     public function getSocialUid()
  274.     {
  275.         return $this->socialUid;
  276.     }
  277.     public function setSocialUid(string $socialUid): self
  278.     {
  279.         $this->socialUid $socialUid;
  280.         return $this;
  281.     }
  282. }