| @@ 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. |
|
| @@ 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 | ||