| Total Complexity | 5 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 4 | class QueriesWithInput |
||
| 5 | { |
||
| 6 | /** @var array $queries */ |
||
| 7 | private $queries = []; |
||
| 8 | |||
| 9 | /** @var string $inputType */ |
||
| 10 | private $inputType; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @param array $queries |
||
| 14 | * @param string $inputType |
||
| 15 | */ |
||
| 16 | public function __construct(array $queries, string $inputType) |
||
| 17 | { |
||
| 18 | $this->queries = $queries; |
||
| 19 | $this->inputType = $inputType; |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @return bool |
||
| 24 | */ |
||
| 25 | public function isNotEmpty(): bool |
||
| 26 | { |
||
| 27 | return (! empty($this->getQueries()) && ! empty($this->getInputType())); |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @return array |
||
| 32 | */ |
||
| 33 | public function getQueries(): array |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | public function getInputType(): string |
||
| 46 |