Skip to content

Commit

Permalink
Feature/Namespaces changed to follow SDK convention.
Browse files Browse the repository at this point in the history
  • Loading branch information
othercodes committed Jan 1, 2024
1 parent 95e73ef commit 2b03ef2
Show file tree
Hide file tree
Showing 16 changed files with 42 additions and 42 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
"authors": [
{
"name": "Unay Santisteban",
"email": "usantisteban@othercode.es"
"email": "usantisteban@othercode.io"
}
],
"minimum-stability": "stable",
"require": {
"php": "^7.4|^8.0"
"php": "^8.1"
},
"autoload": {
"psr-4": {
"ComplexHeart\\Contracts\\": "src/"
"ComplexHeart\\": "src/"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

declare(strict_types=1);

namespace ComplexHeart\Contracts\Domain\Model;
namespace ComplexHeart\Domain\Contracts\Model;

use ComplexHeart\Contracts\Domain\ServiceBus\EventBus;
use ComplexHeart\Domain\Contracts\ServiceBus\EventBus;

/**
* Interface Aggregate
*
* @author Unay Santisteban <usantisteban@othercode.es>
* @package ComplexHeart\Contracts\Domain\Model
* @package ComplexHeart\Domain\Contracts\Model
*/
interface Aggregate extends Entity
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

declare(strict_types=1);

namespace ComplexHeart\Contracts\Domain\Model;
namespace ComplexHeart\Domain\Contracts\Model;

/**
* Interface Entity
*
* @author Unay Santisteban <usantisteban@othercode.es>
* @package ComplexHeart\Contracts\Domain\Model
* @package ComplexHeart\Domain\Contracts\Model
*/
interface Entity
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

declare(strict_types=1);

namespace ComplexHeart\Contracts\Domain\Model;
namespace ComplexHeart\Domain\Contracts\Model;

/**
* Interface Identifier
*
* @author Unay Santisteban <usantisteban@othercode.es>
* @package ComplexHeart\Contracts\Domain\Model
* @package ComplexHeart\Domain\Contracts\Model
*/
interface Identifier
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

declare(strict_types=1);

namespace ComplexHeart\Contracts\Domain\Model;
namespace ComplexHeart\Domain\Contracts\Model;

/**
* Interface ValueObject
*
* @author Unay Santisteban <usantisteban@othercode.es>
* @package ComplexHeart\Contracts\Domain\Model
* @package ComplexHeart\Domain\Contracts\Model
*/
interface ValueObject
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

declare(strict_types=1);

namespace ComplexHeart\Contracts\Domain\ServiceBus;
namespace ComplexHeart\Domain\Contracts\ServiceBus;

/**
* Interface Command
*
* @author Unay Santisteban <usantisteban@othercode.es>
* @package ComplexHeart\Contracts\Domain\ServiceBus
* @package ComplexHeart\Domain\Contracts\ServiceBus
*/
interface Command
{

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

declare(strict_types=1);

namespace ComplexHeart\Contracts\Domain\ServiceBus;
namespace ComplexHeart\Domain\Contracts\ServiceBus;

/**
* Interface CommandBus
*
* @author Unay Santisteban <usantisteban@othercode.es>
* @package ComplexHeart\Contracts\Domain\ServiceBus
* @package ComplexHeart\Domain\Contracts\ServiceBus
*/
interface CommandBus
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

declare(strict_types=1);

namespace ComplexHeart\Contracts\Domain\ServiceBus;
namespace ComplexHeart\Domain\Contracts\ServiceBus;

/**
* Interface CommandHandler
*
* @author Unay Santisteban <usantisteban@othercode.es>
* @package ComplexHeart\Contracts\Domain\ServiceBus
* @package ComplexHeart\Domain\Contracts\ServiceBus
*/
interface CommandHandler
{
Expand All @@ -18,4 +18,4 @@ interface CommandHandler
* @param Command $command
*/
public function __invoke(Command $command): void;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

declare(strict_types=1);

namespace ComplexHeart\Contracts\Domain\ServiceBus;
namespace ComplexHeart\Domain\Contracts\ServiceBus;

/**
* Interface Event
*
* @author Unay Santisteban <usantisteban@othercode.es>
* @package ComplexHeart\Contracts\Domain\ServiceBus
* @package ComplexHeart\Domain\Contracts\ServiceBus
*/
interface Event
{
Expand Down Expand Up @@ -50,4 +50,4 @@ public function payload(): array;
* @return string
*/
public function occurredOn(): string;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

declare(strict_types=1);

namespace ComplexHeart\Contracts\Domain\ServiceBus;
namespace ComplexHeart\Domain\Contracts\ServiceBus;

/**
* Interface EventBus
*
* @author Unay Santisteban <usantisteban@othercode.es>
* @package ComplexHeart\Contracts\Domain\ServiceBus
* @package ComplexHeart\Domain\Contracts\ServiceBus
*/
interface EventBus
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

declare(strict_types=1);

namespace ComplexHeart\Contracts\Domain\ServiceBus;
namespace ComplexHeart\Domain\Contracts\ServiceBus;

/**
* Interface EventHandler
*
* @author Unay Santisteban <usantisteban@othercode.es>
* @package ComplexHeart\Contracts\Domain\ServiceBus
* @package ComplexHeart\Domain\Contracts\ServiceBus
*/
interface EventHandler
{
Expand All @@ -18,4 +18,4 @@ interface EventHandler
* @param Event $event
*/
public function __invoke(Event $event): void;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

declare(strict_types=1);

namespace ComplexHeart\Contracts\Domain\ServiceBus;
namespace ComplexHeart\Domain\Contracts\ServiceBus;

/**
* Interface Query
*
* @author Unay Santisteban <usantisteban@othercode.es>
* @package ComplexHeart\Contracts\Domain\ServiceBus
* @package ComplexHeart\Domain\Contracts\ServiceBus
*/
interface Query
{

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

declare(strict_types=1);

namespace ComplexHeart\Contracts\Domain\ServiceBus;
namespace ComplexHeart\Domain\Contracts\ServiceBus;

/**
* Interface QueryBus
*
* @author Unay Santisteban <usantisteban@othercode.es>
* @package ComplexHeart\Contracts\Domain\ServiceBus
* @package ComplexHeart\Domain\Contracts\ServiceBus
*/
interface QueryBus
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

declare(strict_types=1);

namespace ComplexHeart\Contracts\Domain\ServiceBus;
namespace ComplexHeart\Domain\Contracts\ServiceBus;

/**
* Interface QueryHandler
*
* @author Unay Santisteban <usantisteban@othercode.es>
* @package ComplexHeart\Contracts\Domain\ServiceBus
* @package ComplexHeart\Domain\Contracts\ServiceBus
*/
interface QueryHandler
{
Expand All @@ -20,4 +20,4 @@ interface QueryHandler
* @return QueryResponse
*/
public function __invoke(Query $query): QueryResponse;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

declare(strict_types=1);

namespace ComplexHeart\Contracts\Domain\ServiceBus;
namespace ComplexHeart\Domain\Contracts\ServiceBus;

/**
* Interface QueryResponse
*
* @author Unay Santisteban <usantisteban@othercode.es>
* @package ComplexHeart\Contracts\Domain\ServiceBus
* @package ComplexHeart\Domain\Contracts\ServiceBus
*/
interface QueryResponse
{

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

declare(strict_types=1);

namespace ComplexHeart\Contracts\Domain\ServiceBus;
namespace ComplexHeart\Domain\Contracts\ServiceBus;

/**
* Interface ServiceBus
*
* @author Unay Santisteban <usantisteban@othercode.es>
* @package ComplexHeart\Contracts\Domain\ServiceBus
* @package ComplexHeart\Domain\Contracts\ServiceBus
*/
interface ServiceBus
{
Expand All @@ -32,4 +32,4 @@ public function queryBus(): QueryBus;
* @return EventBus
*/
public function eventBus(): EventBus;
}
}

0 comments on commit 2b03ef2

Please sign in to comment.