[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.138.137.244: ~ $
<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing

namespace MailPoet\API\JSON;

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


class SuccessResponse extends Response {
  public $data;

  public function __construct(
    $data = [],
    $meta = [],
    $status = self::STATUS_OK
  ) {
    parent::__construct($status, $meta);
    $this->data = $data;
  }

  public function getData() {
    if ($this->data === null) return [];

    return [
      'data' => $this->data,
    ];
  }
}

Filemanager

Name Type Size Permission Actions
ResponseBuilders Folder 0755
v1 Folder 0755
API.php File 10.11 KB 0644
Endpoint.php File 1.61 KB 0644
Error.php File 445 B 0644
ErrorHandler.php File 740 B 0644
ErrorResponse.php File 921 B 0644
Response.php File 1.31 KB 0644
SuccessResponse.php File 519 B 0644
index.php File 6 B 0644