getModel()->errors); } public function invoke(): IAfterValidateHandler { return $this; } public function getModel(): ActiveRecord { return $this->model; } public function setModel(ActiveRecord $model): IAfterValidateHandler { $this->model = $model; return $this; } }