Skip to content

Commit

Permalink
Fix entity to value object
Browse files Browse the repository at this point in the history
  • Loading branch information
Serginyu committed Oct 5, 2023
1 parent 0ff4262 commit 92a5f5c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ Its purpose is to store the domain event provided, so you can implement any stor

The `transactional-event.messageBuilder` class must implement `EventMessageBuilderInterface` and `transactional-event.middleware` class must implement `EventStoreMiddlewareInterface`.

The builder should return a `EventMessageInterface` entity. It just needs to implement the `toArray` and `jsonSerialize` methods with all the attributes that you need.
The builder should return a `EventMessageInterface` value object. It just needs to implement the `toArray` and `jsonSerialize` methods with all the attributes that you need.

Considerations
==============
Expand Down
2 changes: 1 addition & 1 deletion config/transactional-event-publisher.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use Softonic\TransactionalEventPublisher\Builders\EventMessageBuilder;
use Softonic\TransactionalEventPublisher\Entities\EventMessage;
use Softonic\TransactionalEventPublisher\ValueObjects\EventMessage;
use Softonic\TransactionalEventPublisher\EventStoreMiddlewares\AmqpMiddleware;
use Softonic\TransactionalEventPublisher\EventStoreMiddlewares\DatabaseMiddleware;

Expand Down
2 changes: 1 addition & 1 deletion src/Builders/EventMessageBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Carbon;
use Softonic\TransactionalEventPublisher\Entities\EventMessage;
use Softonic\TransactionalEventPublisher\ValueObjects\EventMessage;
use Softonic\TransactionalEventPublisher\Interfaces\EventMessageBuilderInterface;
use Softonic\TransactionalEventPublisher\Interfaces\EventMessageInterface;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Softonic\TransactionalEventPublisher\Entities;
namespace Softonic\TransactionalEventPublisher\ValueObjects;

use Softonic\TransactionalEventPublisher\Interfaces\EventMessageInterface;

Expand Down

0 comments on commit 92a5f5c

Please sign in to comment.