class FuncCall
Hierarchy
- class \PhpParser\NodeAbstract implements \PhpParser\Node, \PhpParser\JsonSerializable
Expanded class hierarchy of FuncCall
4 files declare their use of FuncCall
- AssertFunctionTypeSpecifyingExtension.php in vendor/
phpstan/ phpstan-phpunit/ src/ Type/ PHPUnit/ Assert/ AssertFunctionTypeSpecifyingExtension.php - AssertTypeSpecifyingExtensionHelper.php in vendor/
phpstan/ phpstan-phpunit/ src/ Type/ PHPUnit/ Assert/ AssertTypeSpecifyingExtensionHelper.php - CallToDeprecatedFunctionRule.php in vendor/
phpstan/ phpstan-deprecation-rules/ src/ Rules/ Deprecations/ CallToDeprecatedFunctionRule.php - DiscouragedFunctionsRule.php in vendor/
mglaman/ phpstan-drupal/ src/ Rules/ Drupal/ Coder/ DiscouragedFunctionsRule.php
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Expr/ FuncCall.php, line 8
Namespace
PhpParser\Node\ExprView source
class FuncCall extends CallLike {
/** @var Node\Name|Expr Function name */
public Node $name;
/** @var array<Node\Arg|Node\VariadicPlaceholder> Arguments */
public array $args;
/**
* Constructs a function call node.
*
* @param Node\Name|Expr $name Function name
* @param array<Node\Arg|Node\VariadicPlaceholder> $args Arguments
* @param array<string, mixed> $attributes Additional attributes
*/
public function __construct(Node $name, array $args = [], array $attributes = []) {
$this->attributes = $attributes;
$this->name = $name;
$this->args = $args;
}
public function getSubNodeNames() : array {
return [
'name',
'args',
];
}
public function getType() : string {
return 'Expr_FuncCall';
}
public function getRawArgs() : array {
return $this->args;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
CallLike::getArgs | public | function | Assert that this is not a first-class callable and return only ordinary Args. | |
CallLike::isFirstClassCallable | public | function | Returns whether this call expression is actually a first class callable. | |
FuncCall::$args | public | property | @var array<Node\Arg|Node\VariadicPlaceholder> Arguments | |
FuncCall::$name | public | property | @var Node\Name|Expr Function name | |
FuncCall::getRawArgs | public | function | Return raw arguments, which may be actual Args, or VariadicPlaceholders for first-class callables. |
Overrides CallLike::getRawArgs |
FuncCall::getSubNodeNames | public | function | ||
FuncCall::getType | public | function | ||
FuncCall::__construct | public | function | Constructs a function call node. |