| @@ 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. |
|
| @@ 388-395 (lines=8) @@ | ||
| 385 | ); |
|
| 386 | } |
|
| 387 | ||
| 388 | private static function ThrowIfNotDaftJson() : void |
|
| 389 | { |
|
| 390 | if (false === is_a(static::class, DaftJson::class, true)) { |
|
| 391 | throw new DaftObjectNotDaftJsonBadMethodCallException( |
|
| 392 | static::class |
|
| 393 | ); |
|
| 394 | } |
|
| 395 | } |
|
| 396 | } |
|
| 397 | ||