| @@ 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 null|string |
|
| 70 | */ |
|
| 71 | public function getDesc() |
|
| 72 | { |
|
| 73 | $notes = $this->getAllInCategory('desc'); |
|
| 74 | foreach ($notes as $note) { |
|
| 75 | if (isset($note['content'])) { |
|
| 76 | return $note['content']; |
|
| 77 | } |
|
| 78 | } |
|
| 79 | ||
| 80 | return null; |
|
| 81 | } |
|
| 82 | ||
| 83 | /** |
|
| 84 | * @return bool |
|
| @@ 86-96 (lines=11) @@ | ||
| 83 | /** |
|
| 84 | * @return bool |
|
| 85 | */ |
|
| 86 | public function isApproved() |
|
| 87 | { |
|
| 88 | $notes = $this->getAllInCategory('approved'); |
|
| 89 | foreach ($notes as $note) { |
|
| 90 | if (isset($note['content'])) { |
|
| 91 | return 'true' === $note['content']; |
|
| 92 | } |
|
| 93 | } |
|
| 94 | ||
| 95 | return false; |
|
| 96 | } |
|
| 97 | ||
| 98 | /** |
|
| 99 | * @param bool $bool |
|