| @@ 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. |
|
| @@ 342-349 (lines=8) @@ | ||
| 339 | } |
|
| 340 | } |
|
| 341 | ||
| 342 | private static function ThrowIfNotDaftJson() : void |
|
| 343 | { |
|
| 344 | if (false === is_a(static::class, DaftJson::class, true)) { |
|
| 345 | throw new DaftObjectNotDaftJsonBadMethodCallException( |
|
| 346 | static::class |
|
| 347 | ); |
|
| 348 | } |
|
| 349 | } |
|
| 350 | } |
|
| 351 | ||