Conditions | 3 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
42 | public function setRdv($rdv = null) |
||
43 | { |
||
44 | // validation for constraint: boolean |
||
45 | if (!is_null($rdv) && !is_bool($rdv)) { |
||
|
|||
46 | throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($rdv, true), gettype($rdv)), __LINE__); |
||
47 | } |
||
48 | $this->rdv = $rdv; |
||
49 | return $this; |
||
50 | } |
||
52 |