| @@ 173-182 (lines=10) @@ | ||
| 170 | /** |
|
| 171 | * {@inheritdoc} |
|
| 172 | */ |
|
| 173 | final public static function DaftObjectJsonProperties() : array |
|
| 174 | { |
|
| 175 | if (false === is_a(static::class, DaftJson::class, true)) { |
|
| 176 | throw new DaftObjectNotDaftJsonBadMethodCallException( |
|
| 177 | static::class |
|
| 178 | ); |
|
| 179 | } |
|
| 180 | ||
| 181 | return static::JSON_PROPERTIES; |
|
| 182 | } |
|
| 183 | ||
| 184 | /** |
|
| 185 | * {@inheritdoc} |
|
| @@ 398-405 (lines=8) @@ | ||
| 395 | ); |
|
| 396 | } |
|
| 397 | ||
| 398 | private static function ThrowIfNotDaftJson() : void |
|
| 399 | { |
|
| 400 | if (false === is_a(static::class, DaftJson::class, true)) { |
|
| 401 | throw new DaftObjectNotDaftJsonBadMethodCallException( |
|
| 402 | static::class |
|
| 403 | ); |
|
| 404 | } |
|
| 405 | } |
|
| 406 | } |
|
| 407 | ||