src/Entity/AppAccounts/ApiKey.php line 13

  1. <?php
  2. namespace App\Entity\AppAccounts;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * ApiKey
  6.  *
  7.  * @ORM\Table(name="api_key")
  8.  * @ORM\Entity(repositoryClass="App\Repository\AppAccounts\ApiKeyRepository")
  9.  */
  10. class ApiKey
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="api_key_id", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $apiKeyId;
  20.     /**
  21.      * @var int
  22.      *
  23.      * @ORM\Column(name="account_id", type="integer", nullable=false)
  24.      */
  25.     private $accountId;
  26.     /**
  27.      * @var int
  28.      *
  29.      * @ORM\Column(name="service_id", type="integer", nullable=false, options={"comment"="référence du service"})
  30.      */
  31.     private $serviceId '0';
  32.     /**
  33.      * @var string|null
  34.      *
  35.      * @ORM\Column(name="service_url", type="string", length=50, nullable=true, options={"default"="NULL","comment"="Adresse url du service"})
  36.      */
  37.     private $serviceUrl "";
  38.     /**
  39.      * @var string
  40.      *
  41.      * @ORM\Column(name="service_ip", type="string", length=50, nullable=false)
  42.      */
  43.     private $serviceIp;
  44.     /**
  45.      * @var string|null
  46.      *
  47.      * @ORM\Column(name="description", type="string", length=50, nullable=true, options={"default"="NULL","comment"="nom du compte des services"})
  48.      */
  49.     private $description "";
  50.     /**
  51.      * @var string
  52.      *
  53.      * @ORM\Column(name="public_key", type="string", length=256, nullable=false)
  54.      */
  55.     private $publicKey;
  56.     public function getApiKeyId(): ?int
  57.     {
  58.         return $this->apiKeyId;
  59.     }
  60.     public function getAccountId(): ?int
  61.     {
  62.         return $this->accountId;
  63.     }
  64.     public function setAccountId(int $accountId): self
  65.     {
  66.         $this->accountId $accountId;
  67.         return $this;
  68.     }
  69.     public function getServiceId(): ?int
  70.     {
  71.         return $this->serviceId;
  72.     }
  73.     public function setServiceId(int $serviceId): self
  74.     {
  75.         $this->serviceId $serviceId;
  76.         return $this;
  77.     }
  78.     public function getServiceUrl(): ?string
  79.     {
  80.         return $this->serviceUrl;
  81.     }
  82.     public function setServiceUrl(?string $serviceUrl): self
  83.     {
  84.         $this->serviceUrl $serviceUrl;
  85.         return $this;
  86.     }
  87.     public function getServiceIp(): ?string
  88.     {
  89.         return $this->serviceIp;
  90.     }
  91.     public function setServiceIp(string $serviceIp): self
  92.     {
  93.         $this->serviceIp $serviceIp;
  94.         return $this;
  95.     }
  96.     public function getPublicKey(): ?string
  97.     {
  98.         return $this->publicKey;
  99.     }
  100.     public function setPublicKey(string $publicKey): self
  101.     {
  102.         $this->publicKey $publicKey;
  103.         return $this;
  104.     }
  105.     public function getDescription(): ?string
  106.     {
  107.         return $this->description;
  108.     }
  109.     public function setDescription(?string $description): self
  110.     {
  111.         $this->description $description;
  112.         return $this;
  113.     }
  114. }