OpenXE/classes/Modules/Onlineshop/Data/ShopConnectorOrderStatusUpdateResponse.php
2021-05-21 08:49:41 +02:00

36 lines
669 B
PHP

<?php
declare(strict_types=1);
namespace Xentral\Modules\Onlineshop\Data;
class ShopConnectorOrderStatusUpdateResponse implements ShopConnectorResponseInterface
{
/** @var bool $success */
protected $success;
/** @var string $message */
protected $message;
public function __construct(bool $success, string $message)
{
$this->success = $success;
$this->message = $message;
}
/**
* @return bool
*/
public function isSuccessful(): bool
{
return $this->success;
}
/**
* @return string
*/
public function getMessage(): string
{
return $this->message;
}
}