| Conditions | 7 |
| Paths | 8 |
| Total Lines | 37 |
| Code Lines | 25 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | private $checked = false; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Toggles checked state |
||
| 22 | */ |
||
| 23 | public function toggle() : void |
||
| 24 | { |
||
| 25 | $this->checked = !$this->checked; |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Sets checked state to true |
||
| 30 | */ |
||
| 31 | public function setChecked() : void |
||
| 32 | { |
||
| 33 | $this->checked = true; |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Sets checked state to false |
||
| 38 | */ |
||
| 39 | public function setUnchecked() : void |
||
| 40 | { |
||
| 41 | $this->checked = false; |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Whether or not the item is checked |
||
| 46 | */ |
||
| 47 | public function getChecked() : bool |
||
| 48 | { |
||
| 49 | return $this->checked; |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Return the raw string of text |
||
| 54 | */ |
||
| 55 | public function getText() : string |
||
| 97 |