Skip to content

Commit

Permalink
fuckery (#174)
Browse files Browse the repository at this point in the history
## Description

- closes #69 
- closes #136 
- bug fixes

## Checklist
- [ ] Updated CHANGELOG files
- [x] Updated Documentation
- [ ] Unit Tests Created
- [x] php-cs-fixer
  • Loading branch information
JoshuaEstes committed Nov 21, 2023
1 parent fdf9c30 commit 3948219
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions AbstractCommandMessageHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

namespace SonsOfPHP\Component\Cqrs;

use SonsOfPHP\Contract\Cqrs\CommandMessageHandlerInterface;

/**
* @author Joshua Estes <joshua@sonsofphp.com>
*/
Expand Down
6 changes: 6 additions & 0 deletions AbstractMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ abstract class AbstractMessage implements MessageInterface, \JsonSerializable, \
{
private array $payload = [];

/**
* {@inheritdoc}
*/
public function with(string|array $key, mixed $value = null): static
{
if (is_object($value) && !$value instanceof \Stringable) {
Expand Down Expand Up @@ -54,6 +57,9 @@ public function with(string|array $key, mixed $value = null): static
return $that;
}

/**
* {@inheritdoc}
*/
public function get(?string $key = null): mixed
{
if (null === $key) {
Expand Down
2 changes: 2 additions & 0 deletions AbstractQueryMessageHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

namespace SonsOfPHP\Component\Cqrs;

use SonsOfPHP\Contract\Cqrs\QueryMessageHandlerInterface;

/**
* @author Joshua Estes <joshua@sonsofphp.com>
*/
Expand Down

0 comments on commit 3948219

Please sign in to comment.