| 1 | <?php |
||
| 17 | trait ErrorTrait |
||
| 18 | { |
||
| 19 | |||
| 20 | private $isStrict = false; |
||
| 21 | |||
| 22 | 19 | public function getIsStrict() |
|
| 26 | |||
| 27 | 13 | public function setIsStrict($isStrict = true) |
|
| 32 | |||
| 33 | /** |
||
| 34 | * Throws an exception if no records are found / affected |
||
| 35 | * @param PDOStatement $statement |
||
| 36 | * @param \Exception $exceptionToThrow |
||
| 37 | * @return boolean |
||
| 38 | * @throws NoRecordsAffectedException |
||
| 39 | */ |
||
| 40 | |||
| 41 | 20 | public function checkAffected(PDOStatement $statement, \Exception $exceptionToThrow = null) |
|
| 51 | } |
||
| 52 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@returnannotation as described here.