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