1 | <?php |
||
12 | final class CompositionDefinition |
||
13 | { |
||
14 | /** |
||
15 | * Composition type, see DocumentEntity::ONE and DocumentEntity::MANY. |
||
16 | * |
||
17 | * @var int |
||
18 | */ |
||
19 | private $type; |
||
20 | |||
21 | /** |
||
22 | * Nested class. |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | private $class; |
||
27 | |||
28 | /** |
||
29 | * @param int $type |
||
30 | * @param string $class |
||
31 | */ |
||
32 | public function __construct(int $type, string $class) |
||
37 | |||
38 | /** |
||
39 | * Composition type, see Document::ONE and Document::MANY. |
||
40 | * |
||
41 | * @return int |
||
42 | */ |
||
43 | public function getType(): int |
||
47 | |||
48 | /** |
||
49 | * Nested class. |
||
50 | * |
||
51 | * @return string |
||
52 | */ |
||
53 | public function getClass(): string |
||
57 | |||
58 | /** |
||
59 | * @return array |
||
60 | */ |
||
61 | public function packSchema(): array |
||
65 | } |