wp-user-avatar
/
third-party
/
vendor
/
sabberworm
/
php-css-parser
/
src
/
Position
/
Positionable.php
wp-user-avatar
/
third-party
/
vendor
/
sabberworm
/
php-css-parser
/
src
/
Position
Last commit date
Position.php
5 days ago
Positionable.php
5 days ago
Positionable.php
29 lines
| 1 | <?php |
| 2 | |
| 3 | declare (strict_types=1); |
| 4 | namespace ProfilePressVendor\Sabberworm\CSS\Position; |
| 5 | |
| 6 | /** |
| 7 | * Represents a CSS item that may have a position in the source CSS document (line number and possibly column number). |
| 8 | * |
| 9 | * A standard implementation of this interface is available in the `Position` trait. |
| 10 | */ |
| 11 | interface Positionable |
| 12 | { |
| 13 | /** |
| 14 | * @return int<1, max>|null |
| 15 | */ |
| 16 | public function getLineNumber(): ?int; |
| 17 | /** |
| 18 | * @return int<0, max>|null |
| 19 | */ |
| 20 | public function getColumnNumber(): ?int; |
| 21 | /** |
| 22 | * @param int<1, max>|null $lineNumber |
| 23 | * @param int<0, max>|null $columnNumber |
| 24 | * |
| 25 | * @return $this fluent interface |
| 26 | */ |
| 27 | public function setPosition(?int $lineNumber, ?int $columnNumber = null): Positionable; |
| 28 | } |
| 29 |