src/Crossjoin/Css/Format/Rule/AtKeyframes/KeyframesKeyframe.php
public function checkValue(&$value)
    {
        if (parent::checkValue($value) === true) {
            if (!preg_match('/^(?:from|to|(?:\d{1,2}|100)%)$/D', $value)) {
                $this->setIsValid(false);
                $this->addValidationError("Invalid value '$value' for the keyframe selector.");

                return false;
            }
            return true;
        }

        return false;
    }
public function checkValue(&$value)
    {
        if (parent::checkValue($value) === true) {
            if (!preg_match('/^(?:from|to|(?:\d{1,2}|100)%)$/D', $value)) {
                $this->setIsValid(false);
                $this->addValidationError("Invalid value '$value' for the keyframe selector.");

                return false;
            }
            return true;
        }

        return false;
    }
public function checkValue ( & $ value ) { if ( parent :: checkValue ( $ value ) === true ) { if ( ! preg_match ( '/^(?:from|to|(?:\d{1,2}|100)%)$/D' , $ value ) ) { $ this -> setIsValid ( false ) ; $ this -> addValidationError ( "Invalid value '$value' for the keyframe selector." ) ; return false ; } return true ; } return false ; }
Checks the keyframes selector value.

@param string $value
@return bool
Checks the keyframes selector value .