1 | <?php |
||
23 | abstract class AbstractQueryBuilder implements QueryBuilderInputInterface, QueryBuilderTypeInterface { |
||
24 | |||
25 | /** |
||
26 | * Field. |
||
27 | * |
||
28 | * @var string |
||
29 | */ |
||
30 | private $field; |
||
31 | |||
32 | /** |
||
33 | * Id. |
||
34 | * |
||
35 | * @var string |
||
36 | */ |
||
37 | private $id; |
||
38 | |||
39 | /** |
||
40 | * Input. |
||
41 | * |
||
42 | * @var string |
||
43 | */ |
||
44 | private $input; |
||
45 | |||
46 | /** |
||
47 | * Type. |
||
48 | * |
||
49 | * @var string |
||
50 | */ |
||
51 | private $type; |
||
52 | |||
53 | /** |
||
54 | * Constructor. |
||
55 | */ |
||
56 | protected function __construct() { |
||
59 | |||
60 | /** |
||
61 | * {@inheritDoc} |
||
62 | */ |
||
63 | public function getField() { |
||
66 | |||
67 | /** |
||
68 | * {@inheritDoc} |
||
69 | */ |
||
70 | public function getId() { |
||
73 | |||
74 | /** |
||
75 | * {@inheritDoc} |
||
76 | */ |
||
77 | public function getInput() { |
||
80 | |||
81 | /** |
||
82 | * {@inheritDoc} |
||
83 | */ |
||
84 | public function getType() { |
||
87 | |||
88 | /** |
||
89 | * Set the field. |
||
90 | * |
||
91 | * @param string $field The field. |
||
92 | * @return AbstractQueryBuilder Returns this QueryBuilder. |
||
93 | */ |
||
94 | public function setField($field) { |
||
98 | |||
99 | /** |
||
100 | * Set the id. |
||
101 | * |
||
102 | * @param string $id The id. |
||
103 | * @return AbstractQueryBuilder Returns this QueryBuilder. |
||
104 | */ |
||
105 | public function setId($id) { |
||
109 | |||
110 | /** |
||
111 | * Set the input. |
||
112 | * |
||
113 | * @param string $input The input. |
||
114 | * @return AbstractQueryBuilder Returns this QueryBuilder. |
||
115 | * @throws UnexpectedValueException Throws an unexpected value exception if the input is invalid. |
||
116 | */ |
||
117 | public function setInput($input) { |
||
124 | |||
125 | /** |
||
126 | * Set the type. |
||
127 | * |
||
128 | * @param string $type The type. |
||
129 | * @return AbstractQueryBuilder Returns this QueryBuilder. |
||
130 | * @throws UnexpectedValueException Throws an unexpected value exception if the type is invalid. |
||
131 | */ |
||
132 | public function setType($type) { |
||
139 | } |
||
140 |