protected function createAgeVerification(Attribute $attribute)
    {
        $ageCheckArr = explode(static::AGE_DELIMITER, $attribute->getName());
        if (count($ageCheckArr) > 1) {
            $result = $attribute->getValue() === 'true' ? true : false;
            $checkType = $ageCheckArr[0];
            $age = (int) $ageCheckArr[1];

            return new AgeVerification(
                $attribute,
                $checkType,
                $age,
                $result
            );
        }
        return null;
    }
protected function createAgeVerification(Attribute $attribute)
    {
        $ageCheckArr = explode(static::AGE_DELIMITER, $attribute->getName());
        if (count($ageCheckArr) > 1) {
            $result = $attribute->getValue() === 'true' ? true : false;
            $checkType = $ageCheckArr[0];
            $age = (int) $ageCheckArr[1];

            return new AgeVerification(
                $attribute,
                $checkType,
                $age,
                $result
            );
        }
        return null;
    }
protected function createAgeVerification ( Attribute $ attribute ) { $ ageCheckArr = explode ( static :: AGE_DELIMITER , $ attribute -> getName ( ) ) ; if ( count ( $ ageCheckArr ) > 1 ) { $ result = $ attribute -> getValue ( ) === 'true' ? true : false ; $ checkType = $ ageCheckArr [ 0 ] ; $ age = ( int ) $ ageCheckArr [ 1 ] ; return new AgeVerification ( $ attribute , $ checkType , $ age , $ result ) ; } return null ; }
This method could be overridden by a child class.
Depending on the parsing process and complexity.

@param Attribute $attribute

@return null|AgeVerification
This method could be overridden by a child class . Depending on the parsing process and complexity .