url = trim($match[1]); } if (isset($match[2]) && $match[2] !== '') { $this->licenseName = $match[2]; } } /** * @return null|string */ public function getUrl() { return $this->url; } /** * @return null|string */ public function getLicenseName() { return $this->licenseName; } public function __toString() { return 'DocBlock Tag [ * @' . $this->getName() . ' ]' . PHP_EOL; } }