src/Services/EntityService.php
protected function getValidationRules(): array
    {
        $validationRulesFromRepository = $this->repository->getModelValidationRules();

        return !empty($validationRulesFromRepository) ? $validationRulesFromRepository : $this->validationRules;
    }
protected function getValidationRules(): array
    {
        $validationRulesFromRepository = $this->repository->getModelValidationRules();

        return !empty($validationRulesFromRepository) ? $validationRulesFromRepository : $this->validationRules;
    }
protected function getValidationRules ( ) : array { $ validationRulesFromRepository = $ this -> repository -> getModelValidationRules ( ) ; return ! empty ( $ validationRulesFromRepository ) ? $ validationRulesFromRepository : $ this -> validationRules ; }
Returns validation rules.

@return array
Returns validation rules .