Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.
<?php

namespace Sabberworm\CSS\CSSList;

> use Sabberworm\CSS\OutputFormat;
use Sabberworm\CSS\Property\AtRule;
< class KeyFrame extends CSSList implements AtRule { <
> class KeyFrame extends CSSList implements AtRule > { > /** > * @var string|null > */
private $vendorKeyFrame;
> private $animationName; > /** > * @var string|null public function __construct($iLineNo = 0) { > */
< public function __construct($iLineNo = 0) {
> /** > * @param int $iLineNo > */ > public function __construct($iLineNo = 0) > {
$this->vendorKeyFrame = null; $this->animationName = null; }
< public function setVendorKeyFrame($vendorKeyFrame) {
> /** > * @param string $vendorKeyFrame > */ > public function setVendorKeyFrame($vendorKeyFrame) > {
$this->vendorKeyFrame = $vendorKeyFrame; }
< public function getVendorKeyFrame() {
> /** > * @return string|null > */ > public function getVendorKeyFrame() > {
return $this->vendorKeyFrame; }
< public function setAnimationName($animationName) {
> /** > * @param string $animationName > */ > public function setAnimationName($animationName) > {
$this->animationName = $animationName; }
< public function getAnimationName() {
> /** > * @return string|null > */ > public function getAnimationName() > {
return $this->animationName; }
< public function __toString() { < return $this->render(new \Sabberworm\CSS\OutputFormat());
> /** > * @return string > */ > public function __toString() > { > return $this->render(new OutputFormat());
}
< public function render(\Sabberworm\CSS\OutputFormat $oOutputFormat) {
> /** > * @return string > */ > public function render(OutputFormat $oOutputFormat) > {
$sResult = "@{$this->vendorKeyFrame} {$this->animationName}{$oOutputFormat->spaceBeforeOpeningBrace()}{"; $sResult .= parent::render($oOutputFormat); $sResult .= '}'; return $sResult; }
< public function isRootList() {
> /** > * @return bool > */ > public function isRootList() > {
return false; }
< public function atRuleName() {
> /** > * @return string|null > */ > public function atRuleName() > {
return $this->vendorKeyFrame; }
< public function atRuleArgs() {
> /** > * @return string|null > */ > public function atRuleArgs() > {
return $this->animationName; } }