[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/lib/lessphp/Tree/ -> Paren.php (source)

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


Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1