Methods |
public
|
__construct(
string $name,
?string $type = null,
?string $default = null,
bool $isCovariant = false,
bool $isContravariant = false,
?string $class = null,
?string $member = null,
array $aliases = [],
)
Creates a new TemplateTag object
Creates a new TemplateTag object
Overrides
|
#
|
public
|
getName(): string
Get the name of the entity associated with the tag
Get the name of the entity associated with the tag
Overrides
|
#
|
public
|
getDescription(): null
Get the description of the tag
Get the description of the tag
Overrides
|
#
|
public
|
getDefault(): ?string
Get the default value of the template
Get the default value of the template
|
#
|
public
|
isCovariant(): bool
Check if the template is covariant
Check if the template is covariant
|
#
|
public
|
isContravariant(): bool
Check if the template is contravariant
Check if the template is contravariant
|
#
|
public
|
withName(string $name): static
Get an instance with the given name
Get an instance with the given name
|
#
|
public
|
withType(?string $type): static
Get an instance with the given PHPDoc type
Get an instance with the given PHPDoc type
|
#
|
public
|
withDescription(?string $description)
Get an instance with the given description
Get an instance with the given description
Overrides
|
#
|
public
|
withDefault(?string $default): static
Get an instance with the given default value
Get an instance with the given default value
|
#
|
public
|
withoutVariance(): static
Get an instance without covariance or contravariance
Get an instance without covariance or contravariance
|
#
|
public
|
__toString(): string
|
#
|