Debian Codegraph @

vendor/wikimedia/less.php/lib/Less/Tree/Paren.php

raw
1 <?php
2 /**
3 * @private
4 */
5 class Less_Tree_Paren extends Less_Tree implements Less_Tree_HasValueProperty {
6
7 /** @var Less_Tree */
8 public $value;
9
10 /**
11 * @param Less_Tree $value
12 */
13 public function __construct( $value ) {
14 $this->value = $value;
15 }
16
17 public function accept( $visitor ) {
18 $this->value = $visitor->visitObj( $this->value );
19 }
20
21 /**
22 * @see Less_Tree::genCSS
23 */
24 public function genCSS( $output ) {
25 $output->add( '(' );
26 $this->value->genCSS( $output );
27 $output->add( ')' );
28 }
29
30 public function compile( $env ) {
31 return new self( $this->value->compile( $env ) );
32 }
33
34 }