| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php defined('SYSPATH') OR die('No direct access allowed.'); |
||
| 16 | 1 | function __construct($message, $model, $fields = NULL) |
|
|
|
|||
| 17 | { |
||
| 18 | 1 | $this->_model = $model; |
|
| 19 | |||
| 20 | 1 | $fields[':model'] = $model->meta()->model(); |
|
| 21 | 1 | $fields[':errors'] = join(', ', $model->errors()->messages_all()); |
|
| 22 | |||
| 23 | 1 | parent::__construct($message, $fields); |
|
| 24 | 1 | } |
|
| 25 | |||
| 36 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.