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