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