@@ -53,6 +53,9 @@ discard block |
||
53 | 53 | return $this->arrGet($this->data, $popoloArray, []); |
54 | 54 | } |
55 | 55 | |
56 | + /** |
|
57 | + * @param string $attr |
|
58 | + */ |
|
56 | 59 | protected function getDate($attr, $default = null) |
57 | 60 | { |
58 | 61 | $d = $this->arrGet($this->data, $attr); |
@@ -62,6 +65,11 @@ discard block |
||
62 | 65 | return $default; |
63 | 66 | } |
64 | 67 | |
68 | + /** |
|
69 | + * @param string $popoloArray |
|
70 | + * @param string $infoTypeKey |
|
71 | + * @param string $infoValueKey |
|
72 | + */ |
|
65 | 73 | private function getRelatedValues($popoloArray, $infoTypeKey, $infoType, $infoValueKey) |
66 | 74 | { |
67 | 75 | /* Get a value from one of the Popolo related objects |
@@ -106,6 +114,9 @@ discard block |
||
106 | 114 | return $this->getRelatedValues('identifiers', 'scheme', $scheme, 'identifier'); |
107 | 115 | } |
108 | 116 | |
117 | + /** |
|
118 | + * @param string $scheme |
|
119 | + */ |
|
109 | 120 | public function identifierValue($scheme) |
110 | 121 | { |
111 | 122 | $identifierValues = $this->identifierValues($scheme); |
@@ -117,6 +128,9 @@ discard block |
||
117 | 128 | return $this->getRelatedValues('links', 'note', $note, 'url'); |
118 | 129 | } |
119 | 130 | |
131 | + /** |
|
132 | + * @param string $note |
|
133 | + */ |
|
120 | 134 | public function linkValue($note) |
121 | 135 | { |
122 | 136 | $linkValues = $this->linkValues($note); |
@@ -128,6 +142,9 @@ discard block |
||
128 | 142 | return $this->getRelatedValues('contact_details', 'type', $contactType, 'value'); |
129 | 143 | } |
130 | 144 | |
145 | + /** |
|
146 | + * @param string $contactType |
|
147 | + */ |
|
131 | 148 | public function contactDetailValue($contactType) |
132 | 149 | { |
133 | 150 | $contactDetailValues = $this->contactDetailValues($contactType); |
@@ -142,6 +159,9 @@ discard block |
||
142 | 159 | throw new \BadMethodCallException; |
143 | 160 | } |
144 | 161 | |
162 | + /** |
|
163 | + * @param string $popoloArray |
|
164 | + */ |
|
145 | 165 | public function getRelatedObjectArr($popoloArray) |
146 | 166 | { |
147 | 167 | return $this->arrGet($this->data, $popoloArray, []); |
@@ -119,6 +119,9 @@ |
||
119 | 119 | return $this->currentAt(new DateTime); |
120 | 120 | } |
121 | 121 | |
122 | + /** |
|
123 | + * @param DateTime $when |
|
124 | + */ |
|
122 | 125 | public function currentAt($when) |
123 | 126 | { |
124 | 127 | return ($when >= $this->startDate && $when <= $this->endDate); |
@@ -119,6 +119,9 @@ |
||
119 | 119 | return $this->currentAt(new DateTime); |
120 | 120 | } |
121 | 121 | |
122 | + /** |
|
123 | + * @param DateTime $when |
|
124 | + */ |
|
122 | 125 | public function currentAt($when) |
123 | 126 | { |
124 | 127 | return ($when >= $this->startDate && $when <= $this->endDate); |