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

MyIntervals / PHP-CSS-Parser / 13344937658

15 Feb 2025 12:18PM UTC coverage: 50.453% (-0.05%) from 50.498%
13344937658

Pull #932

github

web-flow
Merge b7989b0ad into e1fa3b678
Pull Request #932: [TASK] Drop redundant constructor code

947 of 1877 relevant lines covered (50.45%)

11.35 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
    public function __toString(): string
×
55
    {
56
        return $this->render(new OutputFormat());
×
57
    }
58

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

68
    public function isRootList(): bool
×
69
    {
70
        return false;
×
71
    }
72

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

81
    /**
82
     * @return string|null
83
     */
84
    public function atRuleArgs()
×
85
    {
86
        return $this->animationName;
×
87
    }
88
}
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