Total Complexity | 3 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class SentenciaSelectWhereOrdenOLimite |
||
8 | { |
||
9 | private $_donde; |
||
10 | private $_como; |
||
11 | private $_ordenOLimite; |
||
12 | |||
13 | public function __construct(CamposYTabla $Donde, Como $Como, OrdenOLimiteInterface $ordenOLimiteInterface) |
||
14 | { |
||
15 | $this->_donde = $Donde; |
||
16 | $this->_como = $Como; |
||
17 | $this->_ordenOLimite = $ordenOLimiteInterface; |
||
18 | } |
||
19 | |||
20 | public function sql(): string |
||
21 | { |
||
22 | return 'SELECT '.$this->_donde->sql().' '.$this->_como->sql().' '.$this->_ordenOLimite->sql(); |
||
23 | } |
||
24 | |||
25 | public function datos(): array |
||
28 | } |
||
29 | } |