1 | <?php |
||
10 | abstract class AbstractTable implements TableInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var BuilderInterface |
||
14 | */ |
||
15 | private $qb; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $alias; |
||
21 | |||
22 | /** |
||
23 | * @var null|JoinMetadata |
||
24 | */ |
||
25 | private $joinMetadata; |
||
26 | |||
27 | /** |
||
28 | * @var array $hints |
||
29 | */ |
||
30 | 4 | private $hints = []; |
|
31 | |||
32 | 4 | /** |
|
33 | 4 | * @param BuilderInterface $qb |
|
34 | */ |
||
35 | public function __construct(BuilderInterface $qb) |
||
39 | /** |
||
40 | 2 | * @return string |
|
41 | */ |
||
42 | public function __toString() |
||
46 | 1 | ||
47 | /** |
||
48 | 1 | * @inheritdoc |
|
49 | */ |
||
50 | public function getAliasOrName() |
||
54 | 1 | ||
55 | /** |
||
56 | 1 | * @return bool |
|
57 | */ |
||
58 | public function isJoin() |
||
62 | 2 | ||
63 | /** |
||
64 | 2 | * @return BuilderInterface |
|
65 | */ |
||
66 | public function getQueryBuilder() |
||
70 | |||
71 | /** |
||
72 | * @inheritdoc |
||
73 | */ |
||
74 | public function relative(callable $callback = null) |
||
80 | |||
81 | /** |
||
82 | * @inheritdoc |
||
83 | */ |
||
84 | public function getRelativeBuilder() |
||
88 | 1 | ||
89 | /** |
||
90 | 1 | * @return string |
|
91 | */ |
||
92 | public function getAlias() |
||
96 | |||
97 | /** |
||
98 | 1 | * @param string $alias |
|
99 | * |
||
100 | 1 | * @return $this |
|
101 | */ |
||
102 | 1 | public function setAlias($alias) |
|
108 | |||
109 | /** |
||
110 | 1 | * @param string $name |
|
111 | * |
||
112 | 1 | * @return string |
|
113 | */ |
||
114 | public function column($name) |
||
118 | |||
119 | /** |
||
120 | * @inheritdoc |
||
121 | */ |
||
122 | public function getJoinMetadata() |
||
126 | |||
127 | /** |
||
128 | * @param JoinMetadata $joinMetadata |
||
129 | * |
||
130 | * @return AbstractTable |
||
131 | */ |
||
132 | public function setJoinMetadata(JoinMetadata $joinMetadata) |
||
138 | |||
139 | /** |
||
140 | * @param mixed $hint |
||
141 | * |
||
142 | * @return mixed |
||
143 | */ |
||
144 | public function getHint($hint) |
||
148 | |||
149 | /** |
||
150 | * @param mixed $hint |
||
151 | * |
||
152 | * @return bool |
||
153 | */ |
||
154 | public function hasHint($hint) |
||
158 | |||
159 | /** |
||
160 | * @param mixed $hint |
||
161 | * @param mixed $value |
||
162 | * |
||
163 | * @return $this |
||
164 | */ |
||
165 | public function setHint($hint, $value = true) |
||
171 | |||
172 | } |