TagFactory
Creates tags.
Static Properties
| Name | Type | Summary |
|---|---|---|
$constants | ImmSet<string> | |
$notTypes | ImmSet<string> | |
$psrKeywords | ImmSet<string> | |
$replaceTypes | ImmMap<string,string> | |
$thisy | ImmSet<string> |
Instance Methods
| Returns | Signature and Description |
|---|---|
ConstVector<Tag> | convert(, )Creates a bunch of tags |
| Returns | Signature and Description |
|---|---|
ParameterTag | doParameterTag(, ) |
void | |
TypedTag | doTypedTag(, ) |
VersionTag | doVersionTag(, ) |
ConstVector<ScannedTypehint> | parseTypes(, )Tries to convert a string typehint into a Vector. |
?ScannedTypehint | stringToTypehint(, )Tries to convert a string into a Typehint |
Property Details
$constants
static protected
ImmSet<string> $constants$notTypes
static protected
ImmSet<string> $notTypes$psrKeywords
static protected
ImmSet<string> $psrKeywords$replaceTypes
static protected
ImmMap<string,string> $replaceTypes$thisy
static protected
ImmSet<string> $thisyMethod Details
convert
public function
convert(?ScannedBase $token, ConstVector<string> $tags)Creates a bunch of tags
| Name | Type | Description |
|---|---|---|
$token | ?ScannedBase | The scanned token whose doc comment has these tags |
$tags | ConstVector<string> | The tags to convert |
| Type | Description |
|---|---|
ConstVector<Tag> |
doParameterTag
protected function
doParameterTag(?ScannedBase $token, array<string> $matches)| Name | Type | Description |
|---|---|---|
$token | ?ScannedBase | |
$matches | array<string> |
| Type | Description |
|---|---|
ParameterTag |
doTag
protected function
doTag(Vector<Tag> $out, ?ScannedBase $token, string $tag)| Name | Type | Description |
|---|---|---|
$out | Vector<Tag> | |
$token | ?ScannedBase | |
$tag | string |
doTypedTag
protected function
doTypedTag(?ScannedBase $token, array<string> $matches)| Name | Type | Description |
|---|---|---|
$token | ?ScannedBase | |
$matches | array<string> |
| Type | Description |
|---|---|
TypedTag |
doVersionTag
protected function
doVersionTag(?ScannedBase $token, array<string> $matches)| Name | Type | Description |
|---|---|---|
$token | ?ScannedBase | |
$matches | array<string> |
| Type | Description |
|---|---|
VersionTag |
parseTypes
protected function
parseTypes(string $hints, ?ScannedBase $token = null)Tries to convert a string typehint into a Vector.
parseTypes('Foo|string|null');
| Name | Type | Description |
|---|---|---|
$hints | string | The hints to parse |
$token | ?ScannedBase |
| Type | Description |
|---|---|
ConstVector<ScannedTypehint> | The typehints contained |
stringToTypehint
protected function
stringToTypehint(string $t, ?ScannedBase $token = null)Tries to convert a string into a Typehint
| Name | Type | Description |
|---|---|---|
$t | string | The string typehint |
$token | ?ScannedBase |
| Type | Description |
|---|---|
?ScannedTypehint | The scanned typehint or null |