Phan\Language\Element\TypedElement::getVariadicElementUnionType PHP Метод

getVariadicElementUnionType() публичный Метод

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 getVariadicElementUnionType ( ) : UnionType
Результат Phan\Language\UnionType
    public function getVariadicElementUnionType() : UnionType
    {
        return $this->getUnionType();
    }

Usage Example

Пример #1
0
 /**
  * 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 $this->element->getVariadicElementUnionType();
 }