We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7a5e97 commit f2dc705Copy full SHA for f2dc705
src/Transformers/Decorations/LineDecoration.php
@@ -14,6 +14,18 @@ public function __construct(
14
public ClassList $classes,
15
) {}
16
17
+ public static function forLine(int $line): self
18
+ {
19
+ return new self($line, new ClassList());
20
+ }
21
+
22
+ public function class(string ...$classes): self
23
24
+ $this->classes->add(...$classes);
25
26
+ return $this;
27
28
29
public function appliesToLine(int $line): bool
30
{
31
return $this->line === $line || (is_array($this->line) && $line >= $this->line[0] && $line <= $this->line[1]);
0 commit comments