WordPress\AiClient\Tools\DTO

FunctionCall::__construct │ public │ WP 0.1.0

Constructor.

Метод класса: FunctionCall{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$FunctionCall = new FunctionCall();
$FunctionCall->__construct( ?string $id, ?string $name, $args );
?string $id
.
По умолчанию: null
?string $name
.
По умолчанию: null
$args(разное)
The arguments to pass to the function.
По умолчанию: null

Список изменений

С версии 0.1.0 Введена.

Код FunctionCall::__construct() WP 7.1.2

public function __construct(?string $id = null, ?string $name = null, $args = null)
{
    if ($id === null && $name === null) {
        throw new InvalidArgumentException('At least one of id or name must be provided.');
    }
    $this->id = $id;
    $this->name = $name;
    $this->args = $args;
}