| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class SentenciaJoinWhereOrdenYLimite |
||
| 9 | { |
||
| 10 | private $_donde; |
||
| 11 | private $_where; |
||
| 12 | private $_ordenYLimite; |
||
| 13 | |||
| 14 | 8 | public function __construct(Joins $Joins, WhereInterface $whereInterface, OrdenYLimite $OrdenYLimite) |
|
| 15 | { |
||
| 16 | 8 | $this->_where = $whereInterface; |
|
| 17 | 8 | $this->_donde = $Joins; |
|
| 18 | 8 | $this->_ordenYLimite = $OrdenYLimite; |
|
| 19 | 8 | } |
|
| 20 | |||
| 21 | 2 | public function sql(): string |
|
| 22 | { |
||
| 23 | 2 | return 'SELECT '.$this->_donde->sql().' '.$this->_where->sql().' '.$this->_ordenYLimite->sql(); |
|
| 24 | } |
||
| 25 | |||
| 26 | 2 | public function datos(): array |
|
| 29 | } |
||
| 30 | } |