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
2 months ago
Positionable.php
2 months ago
Positionable.php
41 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(); |
| 17 | /** |
| 18 | * @return int<0, max> |
| 19 | * |
| 20 | * @deprecated in version 8.9.0, will be removed in v9.0. Use `getLineNumber()` instead. |
| 21 | */ |
| 22 | public function getLineNo(); |
| 23 | /** |
| 24 | * @return int<0, max>|null |
| 25 | */ |
| 26 | public function getColumnNumber(); |
| 27 | /** |
| 28 | * @return int<0, max> |
| 29 | * |
| 30 | * @deprecated in version 8.9.0, will be removed in v9.0. Use `getColumnNumber()` instead. |
| 31 | */ |
| 32 | public function getColNo(); |
| 33 | /** |
| 34 | * @param int<0, max>|null $lineNumber |
| 35 | * Providing zero for this parameter is deprecated in version 8.9.0, and will not be supported from v9.0. |
| 36 | * Use `null` instead when no line number is available. |
| 37 | * @param int<0, max>|null $columnNumber |
| 38 | */ |
| 39 | public function setPosition($lineNumber, $columnNumber = null); |
| 40 | } |
| 41 |