1<?php 2/** 3* Abstract superclass of all elements in the abstract syntax tree. 4* 5* @license http://www.opensource.org/licenses/mit-license.php The MIT License 6* @copyright Copyright 2010-2014 PhpCss Team 7*/ 8 9namespace PhpCss\Ast { 10 11 use PhpCss\Ast; 12 13 /** 14 * Abstract superclass of all elements in the abstract syntax tree. 15 */ 16 abstract class Node { 17 18 /** 19 * The visitors are used to extract information from an ast. 20 * 21 * @param Ast\Visitor $visitor 22 */ 23 public function accept(Ast\Visitor $visitor): void { 24 $visitor->visit($this); 25 } 26 } 27} 28