final |
|---|
Represents a template function.
| Methods | ||
|---|---|---|
public
|
__construct(string $name, callable|array{class-string, string}|null $callable = null, array $options = [])
|
# |
public
|
getName(): string
|
# |
public
|
getCallable(): callable|array{class-string, string}|null
|
# |
public
|
getNodeClass(): string
|
# |
public
|
setArguments(array $arguments): void
|
# |
public
|
getArguments(): array
|
# |
public
|
needsEnvironment(): bool
|
# |
public
|
needsContext(): bool
|
# |
public
|
getSafe(Node $functionArgs): ?array
|
# |
public
|
isVariadic(): bool
|
# |
public
|
isDeprecated(): bool
|
# |
public
|
getDeprecatedVersion(): string
|
# |
public
|
getAlternative(): ?string
|
# |
| Properties | |||
|---|---|---|---|
private
|
|
$name
|
# |
private
|
|
$callable
|
# |
private
|
|
$options
|
# |
private
|
|
$arguments = []
|
# |