Page MenuHomeWickedGov Phorge

CSSObject.php
No OneTemporary

Size
945 B
Referenced Files
None
Subscribers
None

CSSObject.php

<?php
/**
* @file
* @license https://opensource.org/licenses/Apache-2.0 Apache-2.0
*/
namespace Wikimedia\CSS\Objects;
/**
* A base interface for "CSS objects"
*
* Each object has a position and an ability to be turned into a sequence of
* Tokens.
*/
interface CSSObject {
/**
* Get the position of this object in the input stream
*
* Position is reported as one-based line and one-based codepoint within
* the line. If no position is available, returns -1 for both line and
* position.
*
* @return array [ $line, $pos ]
*/
public function getPosition();
/**
* Return an array of Tokens that correspond to this object.
* @return Token[]
*/
public function toTokenArray();
/**
* Return an array of ComponentValues that correspond to this object.
* @warning Do not return any Tokens that aren't valid in a ComponentValueList.
* @return ComponentValue[]
*/
public function toComponentValueArray();
}

File Metadata

Mime Type
text/x-php
Expires
Sat, May 16, 21:09 (1 d, 15 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
48/c8/bbf8546ca8c3610cd9774ef5217e
Default Alt Text
CSSObject.php (945 B)

Event Timeline