From f5ef64a50e57c8a3bcd4f8930ec9ce7f1c021f14 Mon Sep 17 00:00:00 2001 From: murtukov Date: Fri, 26 Jun 2020 19:51:44 +0200 Subject: [PATCH] Allow adding multiple function arguments at once --- src/AbstractFunction.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/AbstractFunction.php b/src/AbstractFunction.php index 399c072..e590436 100644 --- a/src/AbstractFunction.php +++ b/src/AbstractFunction.php @@ -44,6 +44,13 @@ public function addArgument(string $name, string $type = '', $defaultValue = Arg return $this; } + public function addArguments(string ...$names): self + { + $this->signature->addArguments(...$names); + + return $this; + } + public function add(FunctionMemberInterface $member): self { $this->signature->add($member);