/**
  * Magic method which returns the names of all those properties that should
  * be cached for this node instance.
  *
  * @return array(string)
  * @since 0.10.0
  */
 public function __sleep()
 {
     return array_merge(array('context'), parent::__sleep());
 }
Beispiel #2
0
 /**
  * Constructs a new array type node.
  */
 public function __construct()
 {
     parent::__construct(self::IMAGE);
 }
Beispiel #3
0
 /**
  * testIsPrimitiveReturnsFalseByDefault
  *
  * @return void
  * @group pdepend
  * @group pdepend::ast
  * @group unittest
  */
 public function testIsPrimitiveReturnsFalseByDefault()
 {
     $type = new PHP_Depend_Code_ASTTypeNode();
     self::assertFalse($type->isPrimitive());
 }
 /**
  * Constructs a new type holder instance.
  *
  * @param PHP_Depend_BuilderI $builder       The associated AST builder instance.
  * @param string              $qualifiedName The qualified type name.
  */
 public function __construct(PHP_Depend_BuilderI $builder, $qualifiedName)
 {
     parent::__construct($qualifiedName);
     $this->builder = $builder;
 }
 /**
  * testIsPrimitiveReturnsFalse
  *
  * @return void
  * @covers PHP_Depend_Code_ASTTypeNode
  * @group pdepend
  * @group pdepend::ast
  * @group unittest
  */
 public function testIsPrimitiveReturnsFalse()
 {
     $type = new PHP_Depend_Code_ASTTypeNode();
     $this->assertFalse($type->isPrimitive());
 }