| @@ 174-183 (lines=10) @@ | ||
| 171 | /** |
|
| 172 | * {@inheritdoc} |
|
| 173 | */ |
|
| 174 | final public static function DaftObjectJsonProperties() : array |
|
| 175 | { |
|
| 176 | if (false === is_a(static::class, DaftJson::class, true)) { |
|
| 177 | throw new DaftObjectNotDaftJsonBadMethodCallException( |
|
| 178 | static::class |
|
| 179 | ); |
|
| 180 | } |
|
| 181 | ||
| 182 | return static::JSON_PROPERTIES; |
|
| 183 | } |
|
| 184 | ||
| 185 | /** |
|
| 186 | * {@inheritdoc} |
|
| @@ 378-385 (lines=8) @@ | ||
| 375 | ); |
|
| 376 | } |
|
| 377 | ||
| 378 | private static function ThrowIfNotDaftJson() : void |
|
| 379 | { |
|
| 380 | if (false === is_a(static::class, DaftJson::class, true)) { |
|
| 381 | throw new DaftObjectNotDaftJsonBadMethodCallException( |
|
| 382 | static::class |
|
| 383 | ); |
|
| 384 | } |
|
| 385 | } |
|
| 386 | } |
|
| 387 | ||