1 | <?php |
||
25 | abstract class AbstractQueryBuilder implements QueryBuilderInputInterface, QueryBuilderTypeInterface { |
||
26 | |||
27 | /** |
||
28 | * Field. |
||
29 | * |
||
30 | * @var string|null |
||
31 | */ |
||
32 | private $field; |
||
33 | |||
34 | /** |
||
35 | * Id. |
||
36 | * |
||
37 | * @var string|null |
||
38 | */ |
||
39 | private $id; |
||
40 | |||
41 | /** |
||
42 | * Input. |
||
43 | * |
||
44 | * @var string|null |
||
45 | */ |
||
46 | private $input; |
||
47 | |||
48 | /** |
||
49 | * Type. |
||
50 | * |
||
51 | * @var string|null |
||
52 | */ |
||
53 | private $type; |
||
54 | |||
55 | /** |
||
56 | * Constructor. |
||
57 | */ |
||
58 | protected function __construct() { |
||
61 | |||
62 | /** |
||
63 | * {@inheritDoc} |
||
64 | */ |
||
65 | public function getField(): ?string { |
||
68 | |||
69 | /** |
||
70 | * {@inheritDoc} |
||
71 | */ |
||
72 | public function getId(): ?string { |
||
75 | |||
76 | /** |
||
77 | * {@inheritDoc} |
||
78 | */ |
||
79 | public function getInput(): ?string { |
||
82 | |||
83 | /** |
||
84 | * {@inheritDoc} |
||
85 | */ |
||
86 | public function getType(): ?string { |
||
89 | |||
90 | /** |
||
91 | * Set the field. |
||
92 | * |
||
93 | * @param string|null $field The field. |
||
94 | * @return AbstractQueryBuilder Returns this QueryBuilder. |
||
95 | */ |
||
96 | public function setField(?string $field): AbstractQueryBuilder { |
||
100 | |||
101 | /** |
||
102 | * Set the id. |
||
103 | * |
||
104 | * @param string|null $id The id. |
||
105 | * @return AbstractQueryBuilder Returns this QueryBuilder. |
||
106 | */ |
||
107 | public function setId(?string $id): AbstractQueryBuilder { |
||
111 | |||
112 | /** |
||
113 | * Set the input. |
||
114 | * |
||
115 | * @param string|null $input The input. |
||
116 | * @return AbstractQueryBuilder Returns this QueryBuilder. |
||
117 | * @throws InvalidArgumentException Throws an invalid argument exception if the input is invalid. |
||
118 | */ |
||
119 | public function setInput(?string $input): AbstractQueryBuilder { |
||
126 | |||
127 | /** |
||
128 | * Set the type. |
||
129 | * |
||
130 | * @param string|null $type The type. |
||
131 | * @return AbstractQueryBuilder Returns this QueryBuilder. |
||
132 | * @throws InvalidArgumentException Throws an invalid argument exception if the type is invalid. |
||
133 | */ |
||
134 | public function setType(?string $type): AbstractQueryBuilder { |
||
141 | } |
||
142 |