Skip to content

Commit 2eb2b79

Browse files
committed
[TASK] Add SelectorComponent interface
This will be implemented by `CompoundSelector` and `Combinator` to break up the components of a selector. Part of #1325.
1 parent 21bb0eb commit 2eb2b79

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Sabberworm\CSS\Property\Selector;
6+
7+
interface SelectorComponent
8+
{
9+
/**
10+
* @return non-empty-string
11+
*/
12+
public function getStringValue(): string;
13+
14+
/**
15+
* @param non-empty-string $value
16+
*/
17+
public function setStringValue(string $value): void;
18+
19+
/**
20+
* @return int<0, max>
21+
*/
22+
public function getSpecificity(): int;
23+
}

0 commit comments

Comments
 (0)