protected function isDerivedAttribute(Attribute $attribute)
    {
        return preg_match($this->getAgePattern(), $attribute->getName()) ? true : false;
    }
protected function isDerivedAttribute(Attribute $attribute)
    {
        return preg_match($this->getAgePattern(), $attribute->getName()) ? true : false;
    }
protected function isDerivedAttribute ( Attribute $ attribute ) { return preg_match ( $ this -> getAgePattern ( ) , $ attribute -> getName ( ) ) ? true : false ; }
Return true if attribute name matches the pattern.

@param Attribute $attribute

@return bool
Return true if attribute name matches the pattern .