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