mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 18:13:13 +00:00
Updated @version in accordance with the latest changes in Tag.
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
|
|
||||||
namespace phpDocumentor\Reflection\DocBlock\Tag;
|
namespace phpDocumentor\Reflection\DocBlock\Tag;
|
||||||
|
|
||||||
|
use phpDocumentor\Reflection\DocBlock;
|
||||||
use phpDocumentor\Reflection\DocBlock\Tag;
|
use phpDocumentor\Reflection\DocBlock\Tag;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -29,14 +30,13 @@ class VersionTag extends Tag
|
|||||||
/**
|
/**
|
||||||
* Parses a tag and populates the member variables.
|
* Parses a tag and populates the member variables.
|
||||||
*
|
*
|
||||||
* @param string $type Tag identifier for this tag (should be 'version').
|
* @param string $type Tag identifier for this tag (should be 'version').
|
||||||
* @param string $content Contents for this tag.
|
* @param string $content Contents for this tag.
|
||||||
|
* @param DocBlock $docblock The DocBlock which this tag belongs to.
|
||||||
*/
|
*/
|
||||||
public function __construct($type, $content)
|
public function __construct($type, $content, DocBlock $docblock = null)
|
||||||
{
|
{
|
||||||
$this->tag = $type;
|
parent::__construct($type, $content, $docblock);
|
||||||
$this->content = $content;
|
|
||||||
$this->description = trim($content);
|
|
||||||
|
|
||||||
if (preg_match(
|
if (preg_match(
|
||||||
'/^
|
'/^
|
||||||
|
|||||||
Reference in New Issue
Block a user