| @@ 364-371 (lines=8) @@ | ||
| 361 | ); |
|
| 362 | } |
|
| 363 | ||
| 364 | private static function ThrowIfNotDaftJson() : void |
|
| 365 | { |
|
| 366 | if (false === is_a(static::class, DaftJson::class, true)) { |
|
| 367 | throw new DaftObjectNotDaftJsonBadMethodCallException( |
|
| 368 | static::class |
|
| 369 | ); |
|
| 370 | } |
|
| 371 | } |
|
| 372 | } |
|
| 373 | ||
| @@ 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} |
|