Merge branch 'MDL-46588-27' of git://github.com/jleyva/moodle into MOODLE_27_STABLE
[moodle.git] / lib / lessphp / Tree / Paren.php
blobe865c8986472e0ed084ebab64c137bacca673a44
1 <?php
3 /**
4 * Paren
6 * @package Less
7 * @subpackage tree
8 */
9 class Less_Tree_Paren extends Less_Tree{
11 public $value;
12 public $type = 'Paren';
14 public function __construct($value) {
15 $this->value = $value;
18 function accept($visitor){
19 $this->value = $visitor->visitObj($this->value);
22 /**
23 * @see Less_Tree::genCSS
25 function genCSS( $output ){
26 $output->add( '(' );
27 $this->value->genCSS( $output );
28 $output->add( ')' );
31 public function compile($env) {
32 return new Less_Tree_Paren($this->value->compile($env));