-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from ericksonreyes/rename-command-handler
Renamed command handler to simply command bus.
- Loading branch information
Showing
5 changed files
with
50 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
spec/EricksonReyes/DomainDrivenDesign/Application/MockCommand.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
namespace spec\EricksonReyes\DomainDrivenDesign\Application; | ||
|
||
|
||
class MockCommand | ||
{ | ||
public static function name() | ||
{ | ||
return __CLASS__; | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
spec/EricksonReyes/DomainDrivenDesign/Application/MockEmptyHandler.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
namespace spec\EricksonReyes\DomainDrivenDesign\Application; | ||
|
||
|
||
class MockEmptyHandler | ||
{ | ||
|
||
} |
12 changes: 12 additions & 0 deletions
12
spec/EricksonReyes/DomainDrivenDesign/Application/MockHandler.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
namespace spec\EricksonReyes\DomainDrivenDesign\Application; | ||
|
||
|
||
class MockHandler | ||
{ | ||
public function handleThis(MockCommand $command) | ||
{ | ||
return $command::name(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters