| 1 | <?php declare(strict_types=1); |
||
| 12 | class ConceptBundle extends PrettyJsonSerializable |
||
| 13 | { |
||
| 14 | const FIELDS = [ |
||
| 15 | 'members' => ['Set','Concept'] |
||
| 16 | ]; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Set of concepts in this bundle. |
||
| 20 | * |
||
| 21 | * @var Set $members |
||
| 22 | */ |
||
| 23 | public $members = []; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Whether the concepts in this bundle are ordered (list) or not (set). |
||
| 27 | * @var boolean $ordered |
||
| 28 | */ |
||
| 29 | public $ordered = false; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Whether the concepts in this bundle are combined by OR instead of AND. |
||
| 33 | * @var boolean $disjunction |
||
| 34 | */ |
||
| 35 | public $disjunction = false; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Returns data which should be serialized to JSON. |
||
| 39 | * @param string $context |
||
| 40 | */ |
||
| 41 | public function jsonLDSerialize(string $context=self::DEFAULT_CONTEXT) |
||
| 60 | } |
||
| 61 |