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 #108 from robertlemke/issue-107-oneventstrategy
Resolve #107 - Correctly detect event name in OnEventStrategy
- Loading branch information
Showing
3 changed files
with
58 additions
and
1 deletion.
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
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,38 @@ | ||
<?php | ||
/* | ||
* This file is part of the prooph/service-bus. | ||
* (c) 2014-2015 prooph software GmbH <contact@prooph.de> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* Date: 08/02/15 - 8:35 PM | ||
*/ | ||
|
||
namespace ProophTest\ServiceBus\Mock; | ||
|
||
use Prooph\Common\Messaging\HasMessageName; | ||
|
||
/** | ||
* Class CustomMessage | ||
* @package ProophTest\ServiceBus\Mock | ||
*/ | ||
final class CustomMessageWithName implements HasMessageName | ||
{ | ||
private $text; | ||
|
||
public function __construct($text) | ||
{ | ||
$this->text = $text; | ||
} | ||
|
||
public function getText() | ||
{ | ||
return $this->text; | ||
} | ||
|
||
public function messageName() | ||
{ | ||
return 'Prooph\Test\ServiceBus\Mock\CustomMessageWithSomeOtherName'; | ||
} | ||
} |
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