-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to restore original pushed message class on consume
- Loading branch information
1 parent
d231e82
commit 00ad4a6
Showing
6 changed files
with
102 additions
and
18 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
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
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
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,30 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Yiisoft\Queue\Tests\Unit\Support; | ||
|
||
use Yiisoft\Queue\Message\MessageInterface; | ||
|
||
final class TestMessage implements MessageInterface | ||
{ | ||
public static function fromData(string $handlerName, mixed $data, array $metadata = []): MessageInterface | ||
{ | ||
return new self(); | ||
} | ||
|
||
public function getHandlerName(): string | ||
{ | ||
return 'test'; | ||
} | ||
|
||
public function getData(): mixed | ||
{ | ||
return null; | ||
} | ||
|
||
public function getMetadata(): array | ||
{ | ||
return []; | ||
} | ||
} |