1 | <?php declare (strict_types = 1); |
||
27 | class Relationship implements RelationshipInterface |
||
28 | { |
||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | private $nameInSchema; |
||
33 | |||
34 | /** |
||
35 | * @var string |
||
36 | */ |
||
37 | private $nameInModel; |
||
38 | |||
39 | /** |
||
40 | * @var SchemaInterface |
||
41 | */ |
||
42 | private $fromSchema; |
||
43 | |||
44 | /** |
||
45 | * @var SchemaInterface |
||
46 | */ |
||
47 | private $toSchema; |
||
48 | |||
49 | /** |
||
50 | * @param string $nameInSchema |
||
51 | * @param SchemaInterface $fromSchema |
||
52 | * @param SchemaInterface $toSchema |
||
53 | */ |
||
54 | 10 | public function __construct( |
|
65 | |||
66 | /** |
||
67 | * @inheritdoc |
||
68 | */ |
||
69 | 10 | public function getNameInSchema(): string |
|
73 | |||
74 | /** |
||
75 | * @inheritdoc |
||
76 | */ |
||
77 | 9 | public function getNameInModel(): string |
|
85 | |||
86 | /** |
||
87 | * @inheritdoc |
||
88 | */ |
||
89 | 10 | public function getFromSchema(): SchemaInterface |
|
93 | |||
94 | /** |
||
95 | * @inheritdoc |
||
96 | */ |
||
97 | 3 | public function getToSchema(): SchemaInterface |
|
101 | } |
||
102 |