2026-09-30 09:47:10 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
2026-11-10 14:28:00 +01:00
|
|
|
namespace App\Cqs\Queries\Crm;
|
2026-09-30 09:47:10 +02:00
|
|
|
|
|
|
|
|
use App\Exceptions\CrmServiceException as ExceptionsCrmServiceException;
|
|
|
|
|
use Domain\Models\ValueObjects\CrmCustomer;
|
|
|
|
|
|
|
|
|
|
final readonly class GetCrmCustomerQueryOutput
|
|
|
|
|
{
|
|
|
|
|
public bool $success;
|
|
|
|
|
|
|
|
|
|
public function __construct(
|
|
|
|
|
public null | CrmCustomer | ExceptionsCrmServiceException $customer,
|
|
|
|
|
) {
|
|
|
|
|
$this->success = $this->customer !== null && $this->customer instanceof CrmCustomer;
|
|
|
|
|
}
|
|
|
|
|
}
|