getUnionType() public method

public getUnionType ( ) : UnionType
return Phan\Language\UnionType Get the type of this structural element
コード例 #1
0
ファイル: PassByReferenceVariable.php プロジェクト: etsy/phan
 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();
 }