You are here

public function MethodTag::getArguments in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpdocumentor/reflection-docblock/src/phpDocumentor/Reflection/DocBlock/Tag/MethodTag.php \phpDocumentor\Reflection\DocBlock\Tag\MethodTag::getArguments()

Returns an array containing each argument as array of type and name.

Please note that the argument sub-array may only contain 1 element if no type was specified.

Return value

string[]

File

vendor/phpdocumentor/reflection-docblock/src/phpDocumentor/Reflection/DocBlock/Tag/MethodTag.php, line 170

Class

MethodTag
Reflection class for a @method in a Docblock.

Namespace

phpDocumentor\Reflection\DocBlock\Tag

Code

public function getArguments() {
  if (empty($this->arguments)) {
    return array();
  }
  $arguments = explode(',', $this->arguments);
  foreach ($arguments as $key => $value) {
    $arguments[$key] = explode(' ', trim($value));
  }
  return $arguments;
}