function NullsafeMethodCall::__construct
Constructs a nullsafe method call node.
Parameters
Expr $var Variable holding object:
string|Identifier|Expr $name Method name:
array<Arg|VariadicPlaceholder> $args Arguments:
array<string, mixed> $attributes Additional attributes:
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Expr/ NullsafeMethodCall.php, line 27
Class
Namespace
PhpParser\Node\ExprCode
public function __construct(Expr $var, $name, array $args = [], array $attributes = []) {
$this->attributes = $attributes;
$this->var = $var;
$this->name = \is_string($name) ? new Identifier($name) : $name;
$this->args = $args;
}