Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
44 | public function __construct($model, $id) |
||
45 | { |
||
46 | $this->id = $id; |
||
47 | $this->model = $model; |
||
48 | $this->message = "No results for model [{$model}] #{$id}."; |
||
2 ignored issues
–
show
|
|||
49 | } |
||
50 | |||
71 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.