| 1 | <?php |
||
| 11 | final class EventType extends Category |
||
| 12 | { |
||
| 13 | const DOMAIN = 'eventtype'; |
||
| 14 | |||
| 15 | |||
| 16 | public function __construct($id, $label) |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Creates a new EventType object from a JSON-LD encoded event. |
||
| 23 | * |
||
| 24 | * @param string $eventString |
||
| 25 | * The cultural event encoded as JSON-LD |
||
| 26 | * |
||
| 27 | * @return self|null |
||
| 28 | */ |
||
| 29 | public static function fromJSONLDEvent($eventString) |
||
| 39 | |||
| 40 | public static function fromUdb3ModelCategory(Udb3ModelCategory $category): EventType |
||
| 53 | |||
| 54 | public static function deserialize(array $data): EventType |
||
| 58 | } |
||
| 59 |