getUnionType() public method

..$args), then this returns the corresponding array type(s) of $args. (e.g. DateTime[]) NOTE: For variadic arguments, this is a temporary variable. Modifying this won't result in persistent changes. (TODO(Issue #376) : We will probably want to be able to modify the underlying variable, e.g. by creating class UnionTypeGenericArrayView extends UnionType. Otherwise, type inference of ...$args` based on the function source will be less effective without phpdoc types.)
public getUnionType ( ) : UnionType
return Phan\Language\UnionType
Exemplo n.º 1
0
 /**
  * @return array
  * Get a map from column name to row values for
  * this instance
  */
 public function toRow() : array
 {
     return ['method_fqsen' => (string) $this->method_fqsen, 'name' => (string) $this->parameter->getName(), 'type' => (string) $this->parameter->getUnionType(), 'flags' => $this->parameter->getFlags(), 'context' => base64_encode(serialize($this->parameter->getContext())), 'is_deprecated' => $this->parameter->isDeprecated()];
 }