WordPress\AiClient\Tools\DTO
FunctionDeclaration::__construct
Constructor.
Method of the class: FunctionDeclaration{}
No Hooks.
Returns
null. Nothing (null).
Usage
$FunctionDeclaration = new FunctionDeclaration(); $FunctionDeclaration->__construct( $name, $description, ?array $parameters );
- $name(string) (required)
- The name of the function.
- $description(string) (required)
- A description of what the function does.
- ?array $parameters
- .
Default:null
Changelog
| Since 0.1.0 | Introduced. |
FunctionDeclaration::__construct() FunctionDeclaration:: construct code WP 7.0
public function __construct(string $name, string $description, ?array $parameters = null)
{
$this->name = $name;
$this->description = $description;
$this->parameters = $parameters;
}