ParameterTag
Any tag that includes a typehint, a name, and a description.
Constructors / Destructors
Returns | Signature and Description |
---|---|
void | __construct ( , , , )Creates a new ParameterTag. |
Instance Methods
Returns | Signature and Description |
---|---|
string | Returns a string representation. |
string | Gets the tag description. |
string | getName ()Gets the name of the tag |
ImmVector <ScannedTypehint > | getTypes ()Gets the tag types |
string | Gets the tag variable name |
bool | Whether this tag is needed in the vector. |
Static Methods
Returns | Signature and Description |
---|---|
bool | applies ( )Whether the given tag name applies to this class. |
Method Details
__construct
__construct
(string
$name
, Traversable
<ScannedTypehint
> $type
, string
$variable
, string
$description
)Creates a new ParameterTag.
Name | Type | Description |
---|---|---|
$name | string | The tag name |
$type | Traversable <ScannedTypehint > | The typehint |
$variable | string | The variable name |
$description | string | The tag description |
__toString
__toString
()Returns a string representation.
Type | Description |
---|---|
string | The string representation |
applies
applies
(string
$tagName
)Whether the given tag name applies to this class.
Name | Type | Description |
---|---|---|
$tagName | string | The tag name to test |
Type | Description |
---|---|
bool | whether the tag name applies |
getDescription
Inherited from DescribedTag
getDescription
()Gets the tag description.
Type | Description |
---|---|
string | The tag description |
getName
Inherited from Tag
getName
()Gets the name of the tag
Type | Description |
---|---|
string | The name |
getTypes
Inherited from TypedTag
getTypes
()Gets the tag types
Type | Description |
---|---|
ImmVector <ScannedTypehint > | The tag types |
getVariable
getVariable
()Gets the tag variable name
Type | Description |
---|---|
string | The tag variable name |
isNeeded
isNeeded
(ConstVector
<Tag
> $tags
)Whether this tag is needed in the vector.
Name | Type | Description |
---|---|---|
$tags | ConstVector <Tag > | The tags |
Type | Description |
---|---|
bool |
|