src/File/Validation/Rules.php
protected function applyRulesFromAttribute($parameterName, $itemType = false)
    {
        foreach ($this->attribute->getMeta() as $metaName => $metaValue) {
            $rule = $this->getRule($metaName);
            if ($rule instanceof AbstractRule) {
                $rule->applyRule($parameterName, $metaValue, $itemType);
            }
        }
    }
protected function applyRulesFromAttribute($parameterName, $itemType = false)
    {
        foreach ($this->attribute->getMeta() as $metaName => $metaValue) {
            $rule = $this->getRule($metaName);
            if ($rule instanceof AbstractRule) {
                $rule->applyRule($parameterName, $metaValue, $itemType);
            }
        }
    }
protected function applyRulesFromAttribute ( $ parameterName , $ itemType = false ) { foreach ( $ this -> attribute -> getMeta ( ) as $ metaName => $ metaValue ) { $ rule = $ this -> getRule ( $ metaName ) ; if ( $ rule instanceof AbstractRule ) { $ rule -> applyRule ( $ parameterName , $ metaValue , $ itemType ) ; } } }
Generic method to apply rules from current model
@param string $parameterName
@param bool $itemType
Generic method to apply rules from current model