Skip to content

Commit

Permalink
Enforce DTOs for messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
WyriHaximus committed Dec 31, 2024
1 parent 0b67623 commit d26d377
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 9 additions & 0 deletions src/Work.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

declare(strict_types=1);

namespace Mammatus\Queue\Contracts;

interface Work
{
}
3 changes: 0 additions & 3 deletions src/Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Mammatus\Queue\Contracts;

use Interop\Queue\Message;

interface Worker
{
public function perform(Message $message): void;
}

0 comments on commit d26d377

Please sign in to comment.