1 | <?php |
||
11 | class ParentIdQuery implements BuilderInterface |
||
12 | { |
||
13 | use ParametersTrait; |
||
14 | |||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | private $childType; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | private $parentId; |
||
24 | |||
25 | /** |
||
26 | * @param string $parentId |
||
27 | * @param string $childType |
||
28 | * @param array $parameters |
||
29 | */ |
||
30 | public function __construct($parentId, string $childType, array $parameters = []) |
||
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | public function getType() |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | public function toArray() |
||
58 | } |
||
59 |