DescribedTag
Any tag that includes only a typehint and a description.
Constructors / Destructors
Returns | Signature and Description |
---|---|
void | __construct ( , )Creates a new DescribedTag. |
Instance Methods
Returns | Signature and Description |
---|---|
string | Returns a string representation. |
string | Gets the tag description. |
string | getName ()Gets the name of the tag |
bool | Whether this tag is needed in the vector. |
Method Details
__construct
public function
__construct
(string
$name
, string
$description
)Creates a new DescribedTag.
Name | Type | Description |
---|---|---|
$name | string | The tag name |
$description | string |
__toString
public function
__toString
()Returns a string representation.
Type | Description |
---|---|
string | The string representation |
getDescription
public function
getDescription
()Gets the tag description.
Type | Description |
---|---|
string | The tag description |
getName
Inherited from Tag
public function
getName
()Gets the name of the tag
Type | Description |
---|---|
string | The name |
isNeeded
Inherited from Tag
public function
isNeeded
(ConstVector
<Tag
> $tags
)Whether this tag is needed in the vector.
Name | Type | Description |
---|---|---|
$tags | ConstVector <Tag > | The tags |
Type | Description |
---|---|
bool |
|