403Webshell
Server IP : 172.67.158.161  /  Your IP : 3.135.194.130
Web Server : LiteSpeed
System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : giankuin ( 1871)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/self/root/home/giankuin/thietke365.net/wp-content/plugins/mailpoet/lib/Validator/Schema/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/home/giankuin/thietke365.net/wp-content/plugins/mailpoet/lib/Validator/Schema/ArraySchema.php
<?php declare(strict_types = 1);

namespace MailPoet\Validator\Schema;

if (!defined('ABSPATH')) exit;


use MailPoet\Validator\Schema;

// See: https://developer.wordpress.org/rest-api/extending-the-rest-api/schema/#arrays
class ArraySchema extends Schema {
  protected $schema = [
    'type' => 'array',
  ];

  public function items(Schema $schema): self {
    return $this->updateSchemaProperty('items', $schema->toArray());
  }

  public function minItems(int $value): self {
    return $this->updateSchemaProperty('minItems', $value);
  }

  public function maxItems(int $value): self {
    return $this->updateSchemaProperty('maxItems', $value);
  }

  public function uniqueItems(): self {
    return $this->updateSchemaProperty('uniqueItems', true);
  }
}

Youez - 2016 - github.com/yon3zu
LinuXploit