initial commit

This commit is contained in:
2026-02-11 23:37:50 +01:00
commit 908cf42ad9
128 changed files with 17831 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
<?php
declare(strict_types=1);
namespace App\Data\Intent\Contact;
final class CreateContactIntent
{
public function __construct(
public string $email,
public ?string $firstName,
public ?string $lastName,
) {
}
}

View File

@@ -0,0 +1,15 @@
<?php
declare(strict_types=1);
namespace App\Data\Intent\Contact;
use Ramsey\Uuid\UuidInterface;
final class DeleteContactIntent
{
public function __construct(
public UuidInterface $uuid,
) {
}
}

View File

@@ -0,0 +1,15 @@
<?php
declare(strict_types=1);
namespace App\Data\Intent\Contact\ProcessImport;
final class ImportContactIntent
{
public function __construct(
public ?string $email = null,
public ?string $firstName = null,
public ?string $lastName = null,
) {
}
}

View File

@@ -0,0 +1,27 @@
<?php
declare(strict_types=1);
namespace App\Data\Intent\Contact;
final class SearchContactIntent
{
private const QUERY_ALL = '*';
public readonly string $query;
public readonly int $resultsPerPage;
public function __construct(
string $query,
) {
$this->query = strtolower($query);
$this->resultsPerPage = 20;
}
public static function queryAll(): SearchContactIntent
{
return new SearchContactIntent(
self::QUERY_ALL
);
}
}

View File

@@ -0,0 +1,15 @@
<?php
declare(strict_types=1);
namespace App\Data\Intent\Contact;
use Ramsey\Uuid\UuidInterface;
class SearchContactIntentByUuid
{
public function __construct(
public readonly UuidInterface $uuid,
) {
}
}

View File

@@ -0,0 +1,18 @@
<?php
declare(strict_types=1);
namespace App\Data\Intent\Contact;
use Ramsey\Uuid\UuidInterface;
final class UpdateContactIntent
{
public function __construct(
public UuidInterface $uuid,
public string $email,
public ?string $firstName,
public ?string $lastName,
) {
}
}