Website : phonehp.ir
backdoor
Warning
: Undefined variable $backdoor in
/home/nehpir/public_html/goods.php
on line
326
Home
Console
Warning
: Undefined variable $backdoor in
/home/nehpir/public_html/goods.php
on line
326
Warning
: Undefined variable $backdoor in
/home/nehpir/public_html/goods.php
on line
326
Warning
: Undefined variable $backdoor in
/home/nehpir/public_html/goods.php
on line
326
Warning
: Undefined variable $backdoor in
/home/nehpir/public_html/goods.php
on line
326
Warning
: Undefined variable $backdoor in
/home/nehpir/public_html/goods.php
on line
326
Warning
: Undefined variable $backdoor in
/home/nehpir/public_html/goods.php
on line
326
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
nehpir
/
www
/
wp-content
/
plugins
/
woocommerce
/
src
/
StoreApi
/
Routes
/
V1
/
Agentic
/
Messages
/
Filename :
Message.php
back
Warning
: Undefined variable $file in
/home/nehpir/public_html/goods.php
on line
545
Copy
<?php declare(strict_types=1); namespace Automattic\WooCommerce\StoreApi\Routes\V1\Agentic\Messages; use Automattic\WooCommerce\Internal\Agentic\Enums\Specs\MessageContentType; /** * Base class for error and info messages. */ abstract class Message { /** * Content type for the error message. * * Defaults to plain, but could also be markdown. * * @var string */ protected $content_type = MessageContentType::PLAIN; /** * Error content/message. * * @var string */ protected $content; /** * RFC 9535 JSONPath to the problematic parameter (optional). * * @var string|null */ protected $param; /** * Check if the message is an error. * * @return bool True if the message is an error, false otherwise. */ abstract public function is_error(): bool; /** * Convert the message to an array. * * @return array A message for the `messages` array of the response. */ abstract public function to_array(): array; /** * Use markdown content type for the content of the error. */ public function use_markdown() { $this->content_type = MessageContentType::MARKDOWN; } }