Skip to content

Commit

Permalink
Added Cashier Queue Config contract
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Helldar committed Aug 18, 2021
1 parent 5016244 commit d807969
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cashier/Config/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public function isProduction(): bool;

public function getLogger(): ?string;

public function getQueue(): ?string;
public function getQueue(): Queue;

public function getCheckDelay(): int;

Expand Down
12 changes: 12 additions & 0 deletions src/Cashier/Config/Queue.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

declare(strict_types=1);

namespace Helldar\Contracts\Cashier\Config;

interface Queue
{
public function getConnection(): ?string;

public function getName(): ?string;
}

0 comments on commit d807969

Please sign in to comment.