src/Dio.php
private function setupRules($rules)
    {
        // prepares filter for requiredIf
        $rules = Utils\HelperRequiredIf::prepare($this, $rules);

        // prepares filter for sameWith.
        $rules = Utils\HelperSameWith::prepare($this, $rules);

        return $rules;
    }
private function setupRules($rules)
    {
        // prepares filter for requiredIf
        $rules = Utils\HelperRequiredIf::prepare($this, $rules);

        // prepares filter for sameWith.
        $rules = Utils\HelperSameWith::prepare($this, $rules);

        return $rules;
    }
private function setupRules ( $ rules ) { // prepares filter for requiredIf $ rules = Utils \ HelperRequiredIf :: prepare ( $ this , $ rules ) ; // prepares filter for sameWith. $ rules = Utils \ HelperSameWith :: prepare ( $ this , $ rules ) ; return $ rules ; }
set up rules;
- add required rule based on requiredIf rule.
- add sameAs rule based on sameWith rule.

@param array|Rules $rules
@return array|Rules
set up rules ; - add required rule based on requiredIf rule . - add sameAs rule based on sameWith rule .