| @@ 33-40 (lines=8) @@ | ||
| 30 | /** |
|
| 31 | * @return array |
|
| 32 | */ |
|
| 33 | public function getProperties() |
|
| 34 | {
|
|
| 35 | return array_reduce($this->findAll(), function($result, $parameter) {
|
|
| 36 | if( $this->isPropertyValid($parameter->parameter) ) |
|
| 37 | $result[] = $parameter->parameter; |
|
| 38 | return $result; |
|
| 39 | }, []); |
|
| 40 | } |
|
| 41 | ||
| 42 | /** |
|
| 43 | * @return array |
|
| @@ 45-52 (lines=8) @@ | ||
| 42 | /** |
|
| 43 | * @return array |
|
| 44 | */ |
|
| 45 | public function getParameters() |
|
| 46 | {
|
|
| 47 | return array_reduce($this->findAll(), function($result, $parameter) {
|
|
| 48 | if( is_numeric($parameter->parameter) ) |
|
| 49 | $result[] = $parameter->parameter; |
|
| 50 | return $result; |
|
| 51 | }, []); |
|
| 52 | } |
|
| 53 | ||
| 54 | /** |
|
| 55 | * @param string $property |
|