Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
namespace TijsVerkoyen\CssToInlineStyles\Css\Rule;
4
 
5
use Symfony\Component\CssSelector\Node\Specificity;
6
use TijsVerkoyen\CssToInlineStyles\Css\Property\Property;
7
 
8
final class Rule
9
{
10
    /**
11
     * @var string
12
     */
13
    private $selector;
14
 
15
    /**
16
     * @var Property[]
17
     */
18
    private $properties;
19
 
20
    /**
21
     * @var Specificity
22
     */
23
    private $specificity;
24
 
25
    /**
26
     * @var integer
27
     */
28
    private $order;
29
 
30
    /**
31
     * Rule constructor.
32
     *
33
     * @param string      $selector
34
     * @param Property[]  $properties
35
     * @param Specificity $specificity
36
     * @param int         $order
37
     */
38
    public function __construct($selector, array $properties, Specificity $specificity, $order)
39
    {
40
        $this->selector = $selector;
41
        $this->properties = $properties;
42
        $this->specificity = $specificity;
43
        $this->order = $order;
44
    }
45
 
46
    /**
47
     * Get selector
48
     *
49
     * @return string
50
     */
51
    public function getSelector()
52
    {
53
        return $this->selector;
54
    }
55
 
56
    /**
57
     * Get properties
58
     *
59
     * @return Property[]
60
     */
61
    public function getProperties()
62
    {
63
        return $this->properties;
64
    }
65
 
66
    /**
67
     * Get specificity
68
     *
69
     * @return Specificity
70
     */
71
    public function getSpecificity()
72
    {
73
        return $this->specificity;
74
    }
75
 
76
    /**
77
     * Get order
78
     *
79
     * @return int
80
     */
81
    public function getOrder()
82
    {
83
        return $this->order;
84
    }
85
}