Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4109185
Rule.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
722 B
Referenced Files
None
Subscribers
None
Rule.php
View Options
<?php
/**
* @file
* @license https://opensource.org/licenses/Apache-2.0 Apache-2.0
*/
namespace
Wikimedia\CSS\Objects
;
/**
* Represent an abstract CSS rule
*/
abstract
class
Rule
implements
CSSObject
{
/** @var int Line in the input where this rule starts */
protected
$line
=
-
1
;
/** @var int Position in the input where this rule starts */
protected
$pos
=
-
1
;
/**
* @param Token $token Token starting the rule
*/
public
function
__construct
(
Token
$token
)
{
[
$this
->
line
,
$this
->
pos
]
=
$token
->
getPosition
();
}
/**
* Get the position of this Declaration in the input stream
* @return array [ $line, $pos ]
*/
public
function
getPosition
()
{
return
[
$this
->
line
,
$this
->
pos
];
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Aug 18, 20:55 (2 w, 13 m ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
bc/72/bc766b44f1e76d7a31e46e321709
Default Alt Text
Rule.php (722 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment