Files
wc-licensed-product-client/src/Dto/ActivationResult.php
T

23 lines
414 B
PHP
Raw Normal View History

<?php
declare(strict_types=1);
namespace Magdev\WcLicensedProductClient\Dto;
final readonly class ActivationResult
{
public function __construct(
public bool $success,
public string $message,
) {
}
public static function fromArray(array $data): self
{
return new self(
success: $data['success'],
message: $data['message'],
);
}
}