Step 00 — Squelette + intégration naïve
3 Bounded Contexts (Sales, Invoicing, LegacyFulfillment) avec : - Domaines complets (agrégats, VOs, événements, invariants) - Couche application (commands, queries, ports) - Infrastructure in-memory (repos, gateway fake) - Controllers HTTP Symfony - Couplage naïf synchrone entre BC via NaiveSalesEventPublisher - 20 tests unitaires et d'intégration passants
This commit is contained in:
16
src/LegacyFulfillment/Domain/Model/ShippingAddress.php
Normal file
16
src/LegacyFulfillment/Domain/Model/ShippingAddress.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace MiniShop\LegacyFulfillment\Domain\Model;
|
||||
|
||||
final readonly class ShippingAddress
|
||||
{
|
||||
public function __construct(
|
||||
public string $recipientName,
|
||||
public string $street,
|
||||
public string $city,
|
||||
public string $postalCode,
|
||||
public string $country,
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user