| Total Complexity | 6 |
| Total Lines | 63 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class Condition |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | private $name; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var bool |
||
| 21 | */ |
||
| 22 | private $value; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | private $comment; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return string |
||
| 31 | */ |
||
| 32 | 1 | public function getName(): string |
|
| 33 | { |
||
| 34 | 1 | return $this->name; |
|
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param string $name |
||
| 39 | */ |
||
| 40 | 1 | public function setName(string $name): void |
|
| 41 | { |
||
| 42 | 1 | $this->name = $name; |
|
| 43 | 1 | } |
|
| 44 | |||
| 45 | /** |
||
| 46 | * @return bool |
||
| 47 | */ |
||
| 48 | 1 | public function isValue(): bool |
|
| 49 | { |
||
| 50 | 1 | return $this->value; |
|
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @param bool $value |
||
| 55 | */ |
||
| 56 | 1 | public function setValue(bool $value): void |
|
| 57 | { |
||
| 58 | 1 | $this->value = $value; |
|
| 59 | 1 | } |
|
| 60 | |||
| 61 | /** |
||
| 62 | * @return string |
||
| 63 | */ |
||
| 64 | 1 | public function getComment(): string |
|
| 67 | } |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @param string $comment |
||
| 71 | */ |
||
| 72 | 1 | public function setComment(string $comment): void |
|
| 75 | 1 | } |
|
| 76 | } |
||
| 77 |