1 | <?php |
||
23 | abstract class AbstractBuilder implements BuilderInterface |
||
24 | { |
||
25 | /** |
||
26 | * @var TableFactoryInterface |
||
27 | */ |
||
28 | private $tableFactory; |
||
29 | |||
30 | /** |
||
31 | * @var QueryCompilerInterface |
||
32 | */ |
||
33 | private $queryCompiler; |
||
34 | |||
35 | /** |
||
36 | * @var ParameterManagerInterface |
||
37 | */ |
||
38 | private $parameterManager; |
||
39 | |||
40 | /** |
||
41 | * @var QueryFactoryInterface |
||
42 | */ |
||
43 | private $queryFactory; |
||
44 | |||
45 | /** |
||
46 | * @param TableFactoryInterface $tableFactory |
||
47 | * @param QueryCompilerInterface $queryCompiler |
||
48 | * @param ParameterManagerInterface $parameterManager |
||
49 | * @param QueryFactoryInterface $queryFactory |
||
50 | */ |
||
51 | 1 | public function __construct( |
|
62 | |||
63 | /** |
||
64 | * @return BuilderInterface |
||
65 | */ |
||
66 | public function getQueryBuilder() |
||
67 | { |
||
68 | return $this; |
||
69 | } |
||
70 | |||
71 | /** |
||
72 | * @return TableFactoryInterface |
||
73 | */ |
||
74 | public function getTableFactory() |
||
75 | { |
||
76 | return $this->tableFactory; |
||
77 | } |
||
78 | |||
79 | /** |
||
80 | * @return QueryCompilerInterface |
||
81 | */ |
||
82 | public function getQueryCompiler() |
||
83 | { |
||
84 | return $this->queryCompiler; |
||
85 | } |
||
86 | |||
87 | /** |
||
88 | * @return ParameterManagerInterface |
||
89 | */ |
||
90 | 1 | public function getParameterManager() |
|
94 | |||
95 | /** |
||
96 | * @inheritdoc |
||
97 | */ |
||
98 | public function buildSQL() |
||
102 | |||
103 | /** |
||
104 | * @inheritdoc |
||
105 | */ |
||
106 | public function objectToString($object) |
||
110 | |||
111 | /** |
||
112 | * @inheritdoc |
||
113 | */ |
||
114 | public function setParameter($name, $value) |
||
121 | |||
122 | /** |
||
123 | * @param mixed $connectionHint |
||
124 | * |
||
125 | * @return Query |
||
126 | */ |
||
127 | public function buildQuery($connectionHint = null) |
||
131 | } |