protected $byRef = false;
+ protected $variadic = false;
+
/**
* Creates a parameter builder.
*
return $this;
}
+ /**
+ * Make the parameter variadic
+ *
+ * @return $this The builder instance (for fluid interface)
+ */
+ public function makeVariadic() {
+ $this->variadic = true;
+
+ return $this;
+ }
+
/**
* Returns the built parameter node.
*
*/
public function getNode() {
return new Node\Param(
- $this->name, $this->default, $this->type, $this->byRef
+ $this->name, $this->default, $this->type, $this->byRef, $this->variadic
);
}
}