| Total Complexity | 6 |
| Total Lines | 68 |
| Duplicated Lines | 0 % |
| Coverage | 50% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class Scope implements ScopeEntityInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @ORM\Id() |
||
| 17 | * @ORM\GeneratedValue() |
||
| 18 | * @ORM\Column(type="integer") |
||
| 19 | * @var int|null |
||
| 20 | */ |
||
| 21 | private $id; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string $identifier |
||
| 25 | * @ORM\Column(type="string", length=40) |
||
| 26 | */ |
||
| 27 | protected $identifier; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var string $description |
||
| 31 | * @ORM\Column(type="string", length=255) |
||
| 32 | */ |
||
| 33 | private $description; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return string |
||
| 37 | */ |
||
| 38 | 7 | public function getIdentifier() |
|
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param string $identifier |
||
| 45 | */ |
||
| 46 | 4 | public function setIdentifier($identifier) |
|
| 47 | { |
||
| 48 | 4 | $this->identifier = $identifier; |
|
| 49 | 4 | } |
|
| 50 | |||
| 51 | /** |
||
| 52 | * @return string |
||
| 53 | */ |
||
| 54 | public function getDescription(): string |
||
| 55 | { |
||
| 56 | return $this->description; |
||
| 57 | } |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @param string $description |
||
| 61 | */ |
||
| 62 | public function setDescription(string $description): void |
||
| 63 | { |
||
| 64 | $this->description = $description; |
||
| 65 | } |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @return string |
||
| 69 | */ |
||
| 70 | 4 | public function jsonSerialize() |
|
| 71 | { |
||
| 72 | 4 | return $this->getIdentifier(); |
|
| 73 | } |
||
| 74 | |||
| 75 | /** |
||
| 76 | * @return int|null |
||
| 77 | */ |
||
| 78 | public function getId(): ?int |
||
| 81 | } |
||
| 82 | } |