public function __construct(\PHPParser_Node_Stmt $node)
 {
     parent::__construct($node);
     foreach ($this->node->stmts as $stmt) {
         switch (get_class($stmt)) {
             case 'PHPParser_Node_Stmt_Property':
                 foreach ($stmt->props as $property) {
                     $reflector = new ClassReflector\PropertyReflector($stmt, $property);
                     $this->properties[$reflector->getName()] = $reflector;
                 }
                 break;
             case 'PHPParser_Node_Stmt_ClassMethod':
                 $reflector = new ClassReflector\MethodReflector($stmt);
                 $this->methods[$reflector->getName()] = $reflector;
                 break;
             case 'PHPParser_Node_Stmt_ClassConst':
                 foreach ($stmt->consts as $constant) {
                     $reflector = new ClassReflector\ConstantReflector($constant);
                     $this->constants[$reflector->getName()] = $reflector;
                 }
                 break;
         }
     }
 }
 /**
  * Overload method so we can test the protected method
  *
  * @param $value
  *
  * @return string
  */
 public function getValueRepresentation($value)
 {
     return parent::getRepresentationOfValue($value);
 }
 /**
  * Registers the Constant Statement and Node with this reflector.
  *
  * @param \PHPParser_Node_Stmt_Const $stmt
  * @param \PHPParser_Node_Const      $node
  */
 public function __construct($stmt, $node)
 {
     $this->constant = $stmt;
     parent::__construct($node);
 }