owner->validate()) { $status->setErrorReport(\Yii::t('api','Invalid data'), $this->owner->getErrors()); } else if ($canSetSuccess) { $status->setSuccess(\Yii::t('api', 'All data success')); } return $status; } }