Automattic\WooCommerce\Vendor\Sabberworm\CSS\Position

Positionable{}interfaceWC 1.0

Represents a CSS item that may have a position in the source CSS document (line number and possibly column number).

A standard implementation of this interface is available in the Position trait.

No Hooks.

Usage

$Positionable = new Positionable();
// use class methods

Methods

  1. public getColNo()
  2. public getColumnNumber()
  3. public getLineNo()
  4. public getLineNumber()
  5. public setPosition($lineNumber, $columnNumber = null)

Positionable{} code WC 10.5.0

interface Positionable
{
    /**
     * @return int<1, max>|null
     */
    public function getLineNumber();

    /**
     * @return int<0, max>
     *
     * @deprecated in version 8.9.0, will be removed in v9.0. Use `getLineNumber()` instead.
     */
    public function getLineNo();

    /**
     * @return int<0, max>|null
     */
    public function getColumnNumber();

    /**
     * @return int<0, max>
     *
     * @deprecated in version 8.9.0, will be removed in v9.0. Use `getColumnNumber()` instead.
     */
    public function getColNo();

    /**
     * @param int<0, max>|null $lineNumber
     *        Providing zero for this parameter is deprecated in version 8.9.0, and will not be supported from v9.0.
     *        Use `null` instead when no line number is available.
     * @param int<0, max>|null $columnNumber
     */
    public function setPosition($lineNumber, $columnNumber = null);
}