public function getSelfBlameableRules()
    {
        if (!is_string($this->parentAttribute)) {
            return [];
        }
        if (!empty($this->localSelfBlameableRules) && is_array($this->localSelfBlameableRules)) {
            return $this->localSelfBlameableRules;
        }
        if (is_string($this->parentAttributeRule)) {
            $this->parentAttributeRule = [$this->parentAttributeRule];
        }
        $this->localSelfBlameableRules = [
            array_merge([$this->parentAttribute], $this->parentAttributeRule),
        ];
        return $this->localSelfBlameableRules;
    }
public function getSelfBlameableRules()
    {
        if (!is_string($this->parentAttribute)) {
            return [];
        }
        if (!empty($this->localSelfBlameableRules) && is_array($this->localSelfBlameableRules)) {
            return $this->localSelfBlameableRules;
        }
        if (is_string($this->parentAttributeRule)) {
            $this->parentAttributeRule = [$this->parentAttributeRule];
        }
        $this->localSelfBlameableRules = [
            array_merge([$this->parentAttribute], $this->parentAttributeRule),
        ];
        return $this->localSelfBlameableRules;
    }
public function getSelfBlameableRules ( ) { if ( ! is_string ( $ this -> parentAttribute ) ) { return [ ] ; } if ( ! empty ( $ this -> localSelfBlameableRules ) && is_array ( $ this -> localSelfBlameableRules ) ) { return $ this -> localSelfBlameableRules ; } if ( is_string ( $ this -> parentAttributeRule ) ) { $ this -> parentAttributeRule = [ $ this -> parentAttributeRule ] ; } $ this -> localSelfBlameableRules = [ array_merge ( [ $ this -> parentAttribute ] , $ this -> parentAttributeRule ) , ] ; return $ this -> localSelfBlameableRules ; }
Get rules associated with self blameable attribute.
If self-blameable rules has been stored locally, then it will be given,
or return the parent attribute rule.
@return array rules.
Get rules associated with self blameable attribute . If self - blameable rules has been stored locally then it will be given or return the parent attribute rule .