/**
  * @param PHPDocType $nested_type the elemental type of the array
  */
 public function __construct(PHPDocType $nested_type)
 {
     if ($nested_type->matchesVoid()) {
         throw new PHPDocTypeException("'void[]' - Array of void is illegal.");
     }
     $this->nested_type = $nested_type;
 }
 /**
  * @param PHPDocType $type
  *
  * @throws PHPDocTypeException
  */
 public function __construct(PHPDocType $type)
 {
     if ($type->matchesVoid()) {
         throw new PHPDocTypeException("'void?' - Optional void types are illegal.");
     }
     $this->type = $type;
 }
示例#3
0
 /**
  * @return PHPDocType
  */
 public static function void()
 {
     return PHPDocType::lookup('void');
 }