getUnionType() 공개 메소드

public getUnionType ( ) : UnionType
리턴 Phan\Language\UnionType Get the type of this structural element
예제 #1
0
 public function getUnionType() : UnionType
 {
     return $this->element->getUnionType();
 }
예제 #2
0
파일: Variable.php 프로젝트: etsy/phan
 /**
  * Variables can't be variadic. This is the same as getUnionType for
  * variables, but not necessarily for subclasses. Method will return
  * the element type (such as `DateTime`) for variadic parameters.
  */
 public function getVariadicElementUnionType() : UnionType
 {
     return parent::getUnionType();
 }