4 * @license https://opensource.org/licenses/Apache-2.0 Apache-2.0
7 namespace Wikimedia\CSS\Objects;
10 * A base interface for "CSS objects"
12 * Each object has a position and an ability to be turned into a sequence of
17 * Get the position of this object in the input stream
19 * Position is reported as one-based line and one-based codepoint within
20 * the line. If no position is available, returns -1 for both line and
23 * @return array [ $line, $pos ]
25 public function getPosition();
28 * Return an array of Tokens that correspond to this object.
31 public function toTokenArray();
34 * Return an array of ComponentValues that correspond to this object.
35 * @warning Do not return any Tokens that aren't valid in a ComponentValueList.
36 * @return ComponentValue[]
38 public function toComponentValueArray();