← All changes
|
back/Libraries/Sabberworm/CSS/src/Property/AtRule.php
+14
-19
10.1.4
→
11.1.0
View file →
| @@ -1,34 +1,29 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -namespace Sabberworm\CSS\Property; | |
| 3 | +declare(strict_types=1); | |
| 4 | 4 | |
| 5 | -use Sabberworm\CSS\Comment\Commentable; | |
| 6 | -use Sabberworm\CSS\Renderable; | |
| 5 | +namespace AcyMailing\Libraries\Sabberworm\CSS\Property; | |
| 7 | 6 | |
| 8 | -interface AtRule extends Renderable, Commentable | |
| 7 | +use AcyMailing\Libraries\Sabberworm\CSS\CSSList\CSSListItem; | |
| 8 | + | |
| 9 | +/** | |
| 10 | + * Note that `CSSListItem` extends both `Commentable` and `Renderable`, | |
| 11 | + * so concrete classes implementing this interface must also implement those. | |
| 12 | + */ | |
| 13 | +interface AtRule extends CSSListItem | |
| 9 | 14 | { |
| 10 | 15 | /** |
| 11 | 16 | * Since there are more set rules than block rules, |
| 12 | 17 | * we’re whitelisting the block rules and have anything else be treated as a set rule. |
| 13 | 18 | * |
| 14 | - * @var string | |
| 15 | - */ | |
| 16 | - const BLOCK_RULES = 'media/document/supports/region-style/font-feature-values'; | |
| 17 | - | |
| 18 | - /** | |
| 19 | - * … and more font-specific ones (to be used inside font-feature-values) | |
| 19 | + * @var non-empty-string | |
| 20 | 20 | * |
| 21 | - * @var string | |
| 21 | + * @internal since 8.5.2 | |
| 22 | 22 | */ |
| 23 | - const SET_RULES = 'font-face/counter-style/page/swash/styleset/annotation'; | |
| 23 | + public const BLOCK_RULES = 'media/document/supports/region-style/font-feature-values'; | |
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | - * @return string|null | |
| 26 | + * @return non-empty-string | |
| 27 | 27 | */ |
| 28 | - public function atRuleName(); | |
| 29 | - | |
| 30 | - /** | |
| 31 | - * @return string|null | |
| 32 | - */ | |
| 33 | - public function atRuleArgs(); | |
| 28 | + public function atRuleName(): string; | |
| 34 | 29 | } |