| @@ 387-394 (lines=8) @@ | ||
| 384 | ); |
|
| 385 | } |
|
| 386 | ||
| 387 | private static function ThrowIfNotDaftJson() : void |
|
| 388 | { |
|
| 389 | if (false === is_a(static::class, DaftJson::class, true)) { |
|
| 390 | throw new DaftObjectNotDaftJsonBadMethodCallException( |
|
| 391 | static::class |
|
| 392 | ); |
|
| 393 | } |
|
| 394 | } |
|
| 395 | } |
|
| 396 | ||
| @@ 174-183 (lines=10) @@ | ||
| 171 | /** |
|
| 172 | * {@inheritdoc} |
|
| 173 | */ |
|
| 174 | final public static function DaftObjectJsonProperties() : array |
|
| 175 | { |
|
| 176 | if (false === is_a(static::class, DaftJson::class, true)) { |
|
| 177 | throw new DaftObjectNotDaftJsonBadMethodCallException( |
|
| 178 | static::class |
|
| 179 | ); |
|
| 180 | } |
|
| 181 | ||
| 182 | return static::JSON_PROPERTIES; |
|
| 183 | } |
|
| 184 | ||
| 185 | final protected static function HasPublicMethod( |
|
| 186 | ReflectionClass $classReflection, |
|