|
11 | 11 | use Simples\Persistence\Field;
|
12 | 12 | use Simples\Persistence\Filter;
|
13 | 13 | use Simples\Persistence\Fusion;
|
14 |
| -use function is_array; |
15 | 14 |
|
16 | 15 | /**
|
17 | 16 | * Class ModelParser
|
@@ -50,6 +49,7 @@ protected function parseFilterFields(array $data = []): array
|
50 | 49 | * @param array $filters
|
51 | 50 | * @param array $rules
|
52 | 51 | * @return array
|
| 52 | + * @throws Exception |
53 | 53 | */
|
54 | 54 | protected function parseFilterRules(array $filters, array $rules): array
|
55 | 55 | {
|
@@ -91,6 +91,7 @@ protected function parseFilterValues(array $filters = []): array
|
91 | 91 | /**
|
92 | 92 | * @param array $fields
|
93 | 93 | * @return array
|
| 94 | + * @throws SimplesRunTimeError |
94 | 95 | */
|
95 | 96 | protected function parseReadRelations(array $fields = []): array
|
96 | 97 | {
|
@@ -123,6 +124,7 @@ protected function parseReadRelations(array $fields = []): array
|
123 | 124 | * @param string $hashKey
|
124 | 125 | * @param bool $trash (false)
|
125 | 126 | * @return Record
|
| 127 | + * @throws SimplesRunTimeError |
126 | 128 | */
|
127 | 129 | protected function previous(Record $record, string $hashKey, bool $trash = false): Record
|
128 | 130 | {
|
@@ -161,6 +163,7 @@ protected function getDestroyFilter(string $at, bool $trash = false): Filter
|
161 | 163 | * @param Record $previous (null)
|
162 | 164 | * @param bool $calculate (false)
|
163 | 165 | * @return Record
|
| 166 | + * @throws SimplesRunTimeError |
164 | 167 | */
|
165 | 168 | public function configureRecord(
|
166 | 169 | string $action,
|
@@ -251,6 +254,7 @@ protected function getAvoid(): array
|
251 | 254 | /**
|
252 | 255 | * @param int $options
|
253 | 256 | * @return string
|
| 257 | + * @throws SimplesRunTimeError |
254 | 258 | */
|
255 | 259 | public function getJSON(int $options = 0)
|
256 | 260 | {
|
|
0 commit comments