isStatic = true; } if ($match[2] !== '') { $this->types = explode('|', rtrim($match[2])); } $this->methodName = $match[3]; if ($match[4] !== '') { $this->description = $match[4]; } } /** * Get return value type * * @return null|string * @deprecated 2.0.4 use getTypes instead */ public function getReturnType() { if (empty($this->types)) { return null; } return $this->types[0]; } public function getTypes() { return $this->types; } /** * @return string */ public function getMethodName() { return $this->methodName; } /** * @return null|string */ public function getDescription() { return $this->description; } /** * Is method static * * @return bool */ public function isStatic() { return $this->isStatic; } public function __toString() { return 'DocBlock Tag [ * @' . $this->getName() . ' ]' . PHP_EOL; } }