• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

MyIntervals / PHP-CSS-Parser / 13716838860

07 Mar 2025 08:35AM UTC coverage: 55.626%. Remained the same
13716838860

Pull #1105

github

web-flow
Merge 26aa3cb2a into 4f45adbf3
Pull Request #1105: [CLEANUP] Avoid Hungarian notation in `DeclarationBlock`

4 of 4 new or added lines in 1 file covered. (100.0%)

1053 of 1893 relevant lines covered (55.63%)

12.21 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/CSSList/KeyFrame.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Sabberworm\CSS\CSSList;
6

7
use Sabberworm\CSS\OutputFormat;
8
use Sabberworm\CSS\Property\AtRule;
9

10
class KeyFrame extends CSSList implements AtRule
11
{
12
    /**
13
     * @var string|null
14
     */
15
    private $vendorKeyFrame;
16

17
    /**
18
     * @var string|null
19
     */
20
    private $animationName;
21

22
    /**
23
     * @param string $vendorKeyFrame
24
     */
25
    public function setVendorKeyFrame($vendorKeyFrame): void
×
26
    {
27
        $this->vendorKeyFrame = $vendorKeyFrame;
×
28
    }
×
29

30
    /**
31
     * @return string|null
32
     */
33
    public function getVendorKeyFrame()
×
34
    {
35
        return $this->vendorKeyFrame;
×
36
    }
37

38
    /**
39
     * @param string $animationName
40
     */
41
    public function setAnimationName($animationName): void
×
42
    {
43
        $this->animationName = $animationName;
×
44
    }
×
45

46
    /**
47
     * @return string|null
48
     */
49
    public function getAnimationName()
×
50
    {
51
        return $this->animationName;
×
52
    }
53

54
    /**
55
     * @deprecated in V8.8.0, will be removed in V9.0.0. Use `render` instead.
56
     */
57
    public function __toString(): string
×
58
    {
59
        return $this->render(new OutputFormat());
×
60
    }
61

62
    public function render(OutputFormat $outputFormat): string
×
63
    {
64
        $result = $outputFormat->comments($this);
×
65
        $result .= "@{$this->vendorKeyFrame} {$this->animationName}{$outputFormat->spaceBeforeOpeningBrace()}{";
×
66
        $result .= $this->renderListContents($outputFormat);
×
67
        $result .= '}';
×
68
        return $result;
×
69
    }
70

71
    public function isRootList(): bool
×
72
    {
73
        return false;
×
74
    }
75

76
    /**
77
     * @return string|null
78
     */
79
    public function atRuleName()
×
80
    {
81
        return $this->vendorKeyFrame;
×
82
    }
83

84
    /**
85
     * @return string|null
86
     */
87
    public function atRuleArgs()
×
88
    {
89
        return $this->animationName;
×
90
    }
91
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc