src/Core/Domain/Model/Insales/Embed/Authentication.php line 8

  1. <?php
  2.     
  3.     namespace App\Core\Domain\Model\Insales\Embed;
  4.     
  5.     use Doctrine\ORM\Mapping as ORM;
  6.     #[ORM\Embeddable]
  7.     class Authentication
  8.     {
  9.         /**
  10.          * @deprecated
  11.          * @var string|null
  12.          */
  13.         #[ORM\Column(type'string'length255nullabletrue)]
  14.         private ?string $login;
  15.         /**
  16.          * @deprecated
  17.          * @var string|null
  18.          */
  19.         #[ORM\Column(type'string'length255nullabletrue)]
  20.         private ?string $password;
  21.         /**
  22.          * @var bool
  23.          */
  24.         #[ORM\Column(type'boolean'options: ['default' => false])]
  25.         private bool $authenticationSuccess false;
  26.         /**
  27.          * @var string|null
  28.          */
  29.         #[ORM\Column(type'string'length500nullabletrue)]
  30.         private ?string $authenticationError;
  31.         /**
  32.          * @var string|null
  33.          */
  34.         #[ORM\Column(type'string'length255nullabletrue)]
  35.         private ?string $apiKey null;
  36.     
  37.         /**
  38.          * @deprecated
  39.          * @return string|null
  40.          */
  41.         public function getLogin(): ?string
  42.         {
  43.             return $this->login;
  44.         }
  45.     
  46.         /**
  47.          * @deprecated
  48.          * @param string|null $login
  49.          * @return Authentication
  50.          */
  51.         public function setLogin(?string $login): Authentication
  52.         {
  53.             $this->login $login;
  54.             return $this;
  55.         }
  56.     
  57.         /**
  58.          * @deprecated
  59.          * @return string|null
  60.          */
  61.         public function getPassword(): ?string
  62.         {
  63.             return $this->password;
  64.         }
  65.     
  66.         /**
  67.          * @deprecated
  68.          * @param string|null $password
  69.          * @return Authentication
  70.          */
  71.         public function setPassword(?string $password): Authentication
  72.         {
  73.             $this->password $password;
  74.             return $this;
  75.         }
  76.     
  77.         /**
  78.          * @return bool
  79.          */
  80.         public function isAuthenticationSuccess(): bool
  81.         {
  82.             return $this->authenticationSuccess;
  83.         }
  84.     
  85.         /**
  86.          * @param bool $authenticationSuccess
  87.          * @return Authentication
  88.          */
  89.         public function setAuthenticationSuccess(bool $authenticationSuccess): Authentication
  90.         {
  91.             $this->authenticationSuccess $authenticationSuccess;
  92.             return $this;
  93.         }
  94.     
  95.         /**
  96.          * @return string|null
  97.          */
  98.         public function getAuthenticationError(): ?string
  99.         {
  100.             return $this->authenticationError;
  101.         }
  102.     
  103.         /**
  104.          * @param string|null $authenticationError
  105.          * @return Authentication
  106.          */
  107.         public function setAuthenticationError(?string $authenticationError): Authentication
  108.         {
  109.             $this->authenticationError $authenticationError;
  110.             return $this;
  111.         }
  112.         /**
  113.          * @return string|null
  114.          */
  115.         public function getApiKey(): ?string
  116.         {
  117.             return $this->apiKey;
  118.         }
  119.         /**
  120.          * @param string|null $apiKey
  121.          * @return $this
  122.          */
  123.         public function setApiKey(?string $apiKey): Authentication
  124.         {
  125.             $this->apiKey $apiKey;
  126.             return $this;
  127.         }
  128.     }