src/Crossjoin/Css/Format/Rule/AtKeyframes/KeyframesRuleSet.php
public function setKeyframes($keyframes)
    {
        $this->keyframes = [];
        if (!is_array($keyframes)) {
            $keyframes = [$keyframes];
        }
        foreach ($keyframes as $keyframe) {
            $this->addKeyframe($keyframe);
        }

        return $this;
    }
public function setKeyframes($keyframes)
    {
        $this->keyframes = [];
        if (!is_array($keyframes)) {
            $keyframes = [$keyframes];
        }
        foreach ($keyframes as $keyframe) {
            $this->addKeyframe($keyframe);
        }

        return $this;
    }
public function setKeyframes ( $ keyframes ) { $ this -> keyframes = [ ] ; if ( ! is_array ( $ keyframes ) ) { $ keyframes = [ $ keyframes ] ; } foreach ( $ keyframes as $ keyframe ) { $ this -> addKeyframe ( $ keyframe ) ; } return $ this ; }
Sets the keyframes.

@param KeyframesKeyframe[]|KeyframesKeyframe $keyframes
@return $this
Sets the keyframes .