| @@ 189-204 (lines=16) @@ | ||
| 186 | return $this->getOnlyStore(); | |
| 187 | } | |
| 188 | ||
| 189 | final protected function checkOnyExceptInArray($key, array $options = null) | |
| 190 |     { | |
| 191 | if ( | |
| 192 | $options | |
| 193 | && | |
| 194 | ( | |
| 195 | (isset($options['only']) && is_array($options['only']) && !in_array($key, $options['only'])) | |
| 196 | || | |
| 197 | (isset($options['except']) && is_array($options['except']) && in_array($key, $options['except'])) | |
| 198 | ) | |
| 199 |         ) { | |
| 200 | return false; | |
| 201 | } | |
| 202 | ||
| 203 | return true; | |
| 204 | } | |
| 205 | ||
| 206 | public function toArray(array $options = null) | |
| 207 |     { | |
| @@ 218-233 (lines=16) @@ | ||
| 215 | return $this; | |
| 216 | } | |
| 217 | ||
| 218 | final protected function checkOnyExceptInArray($key, array $options = null) | |
| 219 |     { | |
| 220 | if ( | |
| 221 | $options | |
| 222 | && | |
| 223 | ( | |
| 224 | (isset($options['only']) && is_array($options['only']) && !in_array($key, $options['only'])) | |
| 225 | || | |
| 226 | (isset($options['except']) && is_array($options['except']) && in_array($key, $options['except'])) | |
| 227 | ) | |
| 228 |         ) { | |
| 229 | return false; | |
| 230 | } | |
| 231 | ||
| 232 | return true; | |
| 233 | } | |
| 234 | ||
| 235 | public function toArray(array $options = null) | |
| 236 |     { | |