??????????????
??????????????
??????????????
??????????????
Warning : Undefined variable $auth in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
Warning : Trying to access array offset on value of type null in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
??????????????
??????????????
??????????????
??????????????
File Manager
✏️ Edit File: /home/mklsvubc/renovaid.co.uk/wp-content/plugins/elementor/core/utils/api/response-builder.php
⬅ Kembali
<?php
namespace Elementor\Core\Utils\Api;
class Response_Builder {
private $data;
private int $status;
private array $meta = [];
const NO_CONTENT = 204;
private function __construct( $data, $status ) {
$this->data = $data;
$this->status = $status;
}
public static function make( $data = null, $status = 200 ) {
return new self( $data, $status );
}
public function set_meta( array $meta ) {
$this->meta = $meta;
return $this;
}
public function set_status( int $status ) {
$this->status = $status;
return $this;
}
public function no_content() {
return $this->set_status( static::NO_CONTENT );
}
public function build() {
$res_data = static::NO_CONTENT === $this->status
? null
: [
'data' => $this->data,
'meta' => $this->meta,
];
return new \WP_REST_Response( $res_data, $this->status );
}
}
Nama
Tipe
Ukuran
Diubah
Aksi
🐘 error-builder.php
php
840 B
2025-10-21 16:51
🐘 parse-errors.php
php
1023 B
2025-09-15 14:10
🐘 parse-result.php
php
612 B
2025-09-15 14:10
🐘 response-builder.php
php
855 B
2025-10-21 16:51