@@ -29,14 +29,7 @@ class AttributeNode extends AbstractNode
2929 private $ operator ;
3030 private $ value ;
3131
32- /**
33- * @param NodeInterface $selector
34- * @param string $namespace
35- * @param string $attribute
36- * @param string $operator
37- * @param string $value
38- */
39- public function __construct (NodeInterface $ selector , $ namespace , $ attribute , $ operator , $ value )
32+ public function __construct (NodeInterface $ selector , ?string $ namespace , string $ attribute , string $ operator , ?string $ value )
4033 {
4134 $ this ->selector = $ selector ;
4235 $ this ->namespace = $ namespace ;
@@ -45,42 +38,27 @@ public function __construct(NodeInterface $selector, $namespace, $attribute, $op
4538 $ this ->value = $ value ;
4639 }
4740
48- /**
49- * @return NodeInterface
50- */
51- public function getSelector ()
41+ public function getSelector (): NodeInterface
5242 {
5343 return $ this ->selector ;
5444 }
5545
56- /**
57- * @return string
58- */
59- public function getNamespace ()
46+ public function getNamespace (): ?string
6047 {
6148 return $ this ->namespace ;
6249 }
6350
64- /**
65- * @return string
66- */
67- public function getAttribute ()
51+ public function getAttribute (): string
6852 {
6953 return $ this ->attribute ;
7054 }
7155
72- /**
73- * @return string
74- */
75- public function getOperator ()
56+ public function getOperator (): string
7657 {
7758 return $ this ->operator ;
7859 }
7960
80- /**
81- * @return string
82- */
83- public function getValue ()
61+ public function getValue (): ?string
8462 {
8563 return $ this ->value ;
8664 }
0 commit comments