src/Entity/UsageData.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * UsageData
  6.  *
  7.  * @ORM\Table(name="usage_data")
  8.  * @ORM\Entity(repositoryClass="App\Repository\UsageDataRepository")
  9.  */
  10. class UsageData
  11. {
  12.     /**
  13.      * @ORM\Id()
  14.      * @ORM\GeneratedValue()
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="string", length=255, unique=true)
  20.      */
  21.     private $key;
  22.     /**
  23.      * @ORM\Column(type="string", length=255, nullable=true)
  24.      */
  25.     private $value;
  26.     public function __construct()
  27.     {
  28.     }
  29.     public function getId(): int
  30.     {
  31.         return $this->id;
  32.     }
  33.     public function getKey(): string
  34.     {
  35.         return $this->key;
  36.     }
  37.     
  38.     public function getValue(): ?string
  39.     {
  40.         return $this->value;
  41.     }
  42.     public function setKey(string $key): self
  43.     {
  44.         $this->key $key;
  45.         return $this;
  46.     }
  47.     public function setValue(?string $value): self
  48.     {
  49.         $this->value $value;
  50.         return $this;
  51.     }
  52. }