Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1431866
CSSObject.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
945 B
Referenced Files
None
Subscribers
None
CSSObject.php
View Options
<?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
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 21:09 (1 d, 18 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
48/c8/bbf8546ca8c3610cd9774ef5217e
Default Alt Text
CSSObject.php (945 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment