body = $args === null ? $code : (new Dumper)->format($code, ...$args); return $this; } public function getBody(): string { return $this->body; } /** * @param ?mixed[] $args */ public function addBody( #[Language('PHP')] string $code, ?array $args = null, ): static { $this->body .= ($args === null ? $code : (new Dumper)->format($code, ...$args)) . "\n"; return $this; } /** * @param Parameter[] $val */ public function setParameters(array $val): static { (function (Parameter ...$val) {})(...$val); $this->parameters = []; foreach ($val as $v) { $this->parameters[$v->getName()] = $v; } return $this; } /** * @return Parameter[] */ public function getParameters(): array { return $this->parameters; } /** * @param string $name without $ */ public function addParameter(string $name, mixed $defaultValue = null): Parameter { $param = new Parameter($name); if (func_num_args() > 1) { $param->setDefaultValue($defaultValue); } return $this->parameters[$name] = $param; } /** * @param string $name without $ */ public function removeParameter(string $name): static { unset($this->parameters[$name]); return $this; } public function setVariadic(bool $state = true): static { $this->variadic = $state; return $this; } public function isVariadic(): bool { return $this->variadic; } public function setReturnType(?string $type): static { $this->returnType = Helpers::validateType($type, $this->returnNullable); return $this; } public function getReturnType(bool $asObject = false): Type|string|null { return $asObject && $this->returnType ? Type::fromString($this->returnType) : $this->returnType; } public function setReturnReference(bool $state = true): static { $this->returnReference = $state; return $this; } public function getReturnReference(): bool { return $this->returnReference; } public function setReturnNullable(bool $state = true): static { $this->returnNullable = $state; return $this; } public function isReturnNullable(): bool { return $this->returnNullable; } /** * @deprecated use isReturnNullable() */ public function getReturnNullable(): bool { trigger_error(__METHOD__ . '() is deprecated, use isReturnNullable().', E_USER_DEPRECATED); return $this->returnNullable; } } __halt_compiler();----SIGNATURE:----Ycnc+oXDNHUx9j4KGilnogiFIdDVTBpjTA2q1isssqxxjLM2Pxy0PHnPDD9W3fXkrwuJkqSJk1sjMk3zrkCz48SqU2oaa4w7UWTc5H2KDx8IHTlaDjNsUQXpWMU0SM03QkvjELnAF1qwK16lBGBY4ifmrnjXI/75Vpw4p9zo7vedchk5IxcVgy9ZRmbmjdG8JlkYD4Tz7Uluw9iwXTXM/9tCyl8+4B2NCrFQ3TLoN/Ry/2vfRyYv+b1grMWLN3+9HfzptlX4MkcJB28sQqGeyQmPKGywSBHEWU8cAZrluSp6X28SEt38wTBmSAfBjH5DqqkWDSk9vYcU+RCS9rC/bR72tyx6QySgeK9vUBJ12VM4riejOl2BBsf0iY/mLlfu78IAexsJrlsrF2V4CbHX8zIz+2ZmFR4CQRFDCfOlgiRkgCMdm0wtov3BNKVBwU77egYxrLHXob1z1TZGMlDg8o77bJGei6Kl6s+ODMRwsoNGB5e+z4ksI3v1HI8a9vWVGexcG9nkJGsHwzCzrspPfb0yUQFDRfNw3URH/6744kgd4puFQXImppGl7NxX8Kr4/xRT0y/fS5S+WNYARi7PKHGfmEp75iiEZl2Ujrcy7q5/POGNIAIuQS7n2zPSwly8svl9U/EJ2sCKKbxUxXb8p55h8Qy6h+pw84rHTAwqPvE=----ATTACHMENT:----Njg1MjE2MDYwMTQ2MTQ0MiA4NDE2NzUwODIwMjU4MzQ4IDU5ODYzMjMyMjA1MjgxMjE=