/** * Receives the invalid model and sets the {@link model} and {@link errors} properties. * @param Model $model The troublesome model. */ public function __construct(Model $model) { $this->model = $model; $this->errors = $model->errors(); $this->evalErrors(); }