403Webshell
Server IP : 213.136.93.164  /  Your IP : 216.73.216.104
Web Server : Apache
System : Linux m14200.contabo.net 5.14.0-611.54.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed May 6 18:03:03 EDT 2026 x86_64
User : ki692510 ( 1047)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/self/root/home/ki692510/www/wp-content/plugins/elementor/core/utils/api/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/home/ki692510/www/wp-content/plugins/elementor/core/utils/api/error-builder.php
<?php

namespace Elementor\Core\Utils\Api;

class Error_Builder {
	private string $message;
	private int $status;
	private string $code;
	private array $meta;

	private function __construct( $code, $status = 500 ) {
		$this->code = $code;
		$this->status = $status;
		$this->message = '';
		$this->meta = [];
	}

	public static function make( $code, $status = 500 ) {
		return new self( $code, $status );
	}

	public function set_status( int $status ) {
		$this->status = $status;

		return $this;
	}

	public function set_message( string $message ) {
		$this->message = $message;

		return $this;
	}

	public function set_meta( array $meta ) {
		$this->meta = $meta;

		return $this;
	}

	public function build() {
		return new \WP_Error( $this->code, $this->message, [
			'status' => $this->status,
			'meta' => $this->meta,
		], );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit