| @@ 49-57 (lines=9) @@ | ||
| 46 | /** |
|
| 47 | * @return string|null |
|
| 48 | */ |
|
| 49 | public function getState() |
|
| 50 | { |
|
| 51 | $notes = $this->getAllInCategory('state'); |
|
| 52 | foreach ($notes as $note) { |
|
| 53 | if (isset($note['content'])) { |
|
| 54 | return $note['content']; |
|
| 55 | } |
|
| 56 | } |
|
| 57 | } |
|
| 58 | ||
| 59 | /** |
|
| 60 | * @param string $state |
|
| @@ 71-81 (lines=11) @@ | ||
| 68 | /** |
|
| 69 | * @return bool |
|
| 70 | */ |
|
| 71 | public function isApproved() |
|
| 72 | { |
|
| 73 | $notes = $this->getAllInCategory('approved'); |
|
| 74 | foreach ($notes as $note) { |
|
| 75 | if (isset($note['content'])) { |
|
| 76 | return $note['content'] === 'true'; |
|
| 77 | } |
|
| 78 | } |
|
| 79 | ||
| 80 | return false; |
|
| 81 | } |
|
| 82 | ||
| 83 | /** |
|
| 84 | * @param bool $bool |
|