@@ -160,7 +160,7 @@ |
||
| 160 | 160 | * |
| 161 | 161 | * @param string $property The property |
| 162 | 162 | * |
| 163 | - * @return void |
|
| 163 | + * @return boolean |
|
| 164 | 164 | * |
| 165 | 165 | * @since 1.0.0 |
| 166 | 166 | */ |
@@ -115,20 +115,20 @@ |
||
| 115 | 115 | { |
| 116 | 116 | switch ($property) |
| 117 | 117 | { |
| 118 | - case 'first': |
|
| 119 | - return $this->first(); |
|
| 120 | - case 'last': |
|
| 121 | - return $this->last(); |
|
| 122 | - case 'predecessor': |
|
| 123 | - return $this->predecessor(); |
|
| 124 | - case 'successor': |
|
| 125 | - return $this->successor(); |
|
| 126 | - case 'key': |
|
| 127 | - return $this->key; |
|
| 128 | - case 'count': |
|
| 129 | - return $this->count(); |
|
| 130 | - default: |
|
| 131 | - throw new \RuntimeException('Undefined property'); |
|
| 118 | + case 'first': |
|
| 119 | + return $this->first(); |
|
| 120 | + case 'last': |
|
| 121 | + return $this->last(); |
|
| 122 | + case 'predecessor': |
|
| 123 | + return $this->predecessor(); |
|
| 124 | + case 'successor': |
|
| 125 | + return $this->successor(); |
|
| 126 | + case 'key': |
|
| 127 | + return $this->key; |
|
| 128 | + case 'count': |
|
| 129 | + return $this->count(); |
|
| 130 | + default: |
|
| 131 | + throw new \RuntimeException('Undefined property'); |
|
| 132 | 132 | } |
| 133 | 133 | } |
| 134 | 134 | |