Skip to content

Commit 7a1d8eb

Browse files
authored
Merge pull request #284 from oliverklee/cleanup/types-keyframe
Add type annotations for `KeyFrame`
2 parents 0fa7440 + e1e2f46 commit 7a1d8eb

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/CSSList/KeyFrame.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,33 +17,51 @@ class KeyFrame extends CSSList implements AtRule
1717
*/
1818
private $animationName;
1919

20+
/**
21+
* @param int $iLineNo
22+
*/
2023
public function __construct($iLineNo = 0)
2124
{
2225
parent::__construct($iLineNo);
2326
$this->vendorKeyFrame = null;
2427
$this->animationName = null;
2528
}
2629

30+
/**
31+
* @param string $vendorKeyFrame
32+
*/
2733
public function setVendorKeyFrame($vendorKeyFrame)
2834
{
2935
$this->vendorKeyFrame = $vendorKeyFrame;
3036
}
3137

38+
/**
39+
* @return string|null
40+
*/
3241
public function getVendorKeyFrame()
3342
{
3443
return $this->vendorKeyFrame;
3544
}
3645

46+
/**
47+
* @param string $animationName
48+
*/
3749
public function setAnimationName($animationName)
3850
{
3951
$this->animationName = $animationName;
4052
}
4153

54+
/**
55+
* @return string|null
56+
*/
4257
public function getAnimationName()
4358
{
4459
return $this->animationName;
4560
}
4661

62+
/**
63+
* @return string
64+
*/
4765
public function __toString()
4866
{
4967
return $this->render(new OutputFormat());
@@ -62,6 +80,9 @@ public function render(OutputFormat $oOutputFormat)
6280
return $sResult;
6381
}
6482

83+
/**
84+
* @return bool
85+
*/
6586
public function isRootList()
6687
{
6788
return false;

0 commit comments

Comments
 (0)