403Webshell
Server IP : 172.67.158.161  /  Your IP : 3.143.23.95
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/proc/thread-self/root/proc/self/root/proc/self/root/proc/thread-self/root/home/giankuin/thietke365.net/wp-content/plugins/mailpoet/lib/Automation/Engine/Data/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/proc/thread-self/root/proc/self/root/proc/self/root/proc/thread-self/root/home/giankuin/thietke365.net/wp-content/plugins/mailpoet/lib/Automation/Engine/Data/Field.php
<?php declare(strict_types = 1);

namespace MailPoet\Automation\Engine\Data;

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


use MailPoet\Automation\Engine\Integration\Payload;

class Field {
  public const TYPE_BOOLEAN = 'boolean';
  public const TYPE_INTEGER = 'integer';
  public const TYPE_NUMBER = 'number';
  public const TYPE_STRING = 'string';
  public const TYPE_ENUM = 'enum';
  public const TYPE_ENUM_ARRAY = 'enum_array';
  public const TYPE_DATETIME = 'datetime';

  /** @var string */
  private $key;

  /** @var string */
  private $type;

  /** @var string */
  private $name;

  /** @var callable */
  private $factory;

  /** @var array */
  private $args;

  public function __construct(
    string $key,
    string $type,
    string $name,
    callable $factory,
    array $args = []
  ) {

    $this->key = $key;
    $this->type = $type;
    $this->name = $name;
    $this->factory = $factory;
    $this->args = $args;
  }

  public function getKey(): string {
    return $this->key;
  }

  public function getType(): string {
    return $this->type;
  }

  public function getName(): string {
    return $this->name;
  }

  public function getFactory(): callable {
    return $this->factory;
  }

  /** @return mixed */
  public function getValue(Payload $payload) {
    return $this->getFactory()($payload);
  }

  public function getArgs(): array {
    return $this->args;
  }
}

Youez - 2016 - github.com/yon3zu
LinuXploit