![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/wikimedia/less.php/lib/Less/Tree/ |
<?php /** * @private */ class Less_Tree_Anonymous extends Less_Tree { public $value; public $quote; public $index; public $mapLines; public $currentFileInfo; public $type = 'Anonymous'; /** * @param int $index * @param bool|null $mapLines */ public function __construct( $value, $index = null, $currentFileInfo = null, $mapLines = null ) { $this->value = $value; $this->index = $index; $this->mapLines = $mapLines; $this->currentFileInfo = $currentFileInfo; } public function compile( $env ) { return new Less_Tree_Anonymous( $this->value, $this->index, $this->currentFileInfo, $this->mapLines ); } public function compare( $x ) { if ( !is_object( $x ) ) { return -1; } $left = $this->toCSS(); $right = $x->toCSS(); if ( $left === $right ) { return 0; } return $left < $right ? -1 : 1; } /** * @see Less_Tree::genCSS */ public function genCSS( $output ) { $output->add( $this->value, $this->currentFileInfo, $this->index, $this->mapLines ); } public function toCSS() { return $this->value; } }