| @@ 147-156 (lines=10) @@ | ||
| 144 | /** |
|
| 145 | * {@inheritdoc} |
|
| 146 | */ |
|
| 147 | final public static function DaftObjectJsonProperties() : array |
|
| 148 | { |
|
| 149 | if (false === is_a(static::class, DaftJson::class, true)) { |
|
| 150 | throw new DaftObjectNotDaftJsonBadMethodCallException( |
|
| 151 | static::class |
|
| 152 | ); |
|
| 153 | } |
|
| 154 | ||
| 155 | return static::JSON_PROPERTIES; |
|
| 156 | } |
|
| 157 | ||
| 158 | /** |
|
| 159 | * Nudge the state of a given property, marking it as dirty. |
|
| @@ 376-383 (lines=8) @@ | ||
| 373 | ); |
|
| 374 | } |
|
| 375 | ||
| 376 | private static function ThrowIfNotDaftJson() : void |
|
| 377 | { |
|
| 378 | if (false === is_a(static::class, DaftJson::class, true)) { |
|
| 379 | throw new DaftObjectNotDaftJsonBadMethodCallException( |
|
| 380 | static::class |
|
| 381 | ); |
|
| 382 | } |
|
| 383 | } |
|
| 384 | } |
|
| 385 | ||