Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | 28 | public function __construct(string $statement, array $parameters = [], array $types = []) |
|
29 | { |
||
30 | 28 | if (count($types) > count($parameters)) { |
|
31 | 1 | throw InvalidArguments::wrongTypesArgumentCount($statement, count($parameters), count($types)); |
|
32 | } |
||
33 | |||
34 | 27 | $this->statement = $statement; |
|
35 | 27 | $this->parameters = $parameters; |
|
36 | 27 | $this->types = $types; |
|
37 | 27 | } |
|
61 |