at path:
ROOT
/
wp-content
/
plugins
/
elementor
/
core
/
utils
/
api
/
parse-result.php
run:
R
W
Run
error-builder.php
840 By
2026-04-14 05:34:14
R
W
Run
Delete
Rename
parse-errors.php
1023 By
2026-04-14 05:34:14
R
W
Run
Delete
Rename
parse-result.php
612 By
2026-04-14 05:34:14
R
W
Run
Delete
Rename
response-builder.php
855 By
2026-04-14 05:34:14
R
W
Run
Delete
Rename
error_log
up
📄
parse-result.php
Save
<?php namespace Elementor\Core\Utils\Api; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } class Parse_Result { private Parse_Errors $errors; private $value; public static function make() { return new static(); } public function __construct() { $this->errors = Parse_Errors::make(); } public function wrap( $value ): self { $this->value = $value; return $this; } public function unwrap() { return $this->value; } public function is_valid(): bool { return $this->errors->is_empty(); } public function errors(): Parse_Errors { return $this->errors; } }