PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.10
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.10
4.4.10 4.4.9.1 4.4.9 4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 All 142 releases
learnpress / vendor / tijsverkoyen / css-to-inline-styles / src / Css / Rule / Rule.php

Rule.php in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.4.10, at vendor/tijsverkoyen/css-to-inline-styles/src/Css/Rule/Rule.php

86 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 }
86