bearsunday /
BEAR.QueryRepository
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace BEAR\QueryRepository; |
||
| 6 | |||
| 7 | use Override; |
||
| 8 | use Ray\Di\ProviderInterface; |
||
| 9 | |||
| 10 | /** @implements ProviderInterface<array<CommandInterface>> */ |
||
| 11 | final readonly class CommandsProvider implements ProviderInterface |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 12 | { |
||
| 13 | public function __construct( |
||
| 14 | private RefreshSameCommand $refreshSameCommand, |
||
| 15 | private RefreshAnnotatedCommand $refreshAnnotatedCommand, |
||
| 16 | ) { |
||
| 17 | } |
||
| 18 | |||
| 19 | /** |
||
| 20 | * {@inheritDoc} |
||
| 21 | */ |
||
| 22 | #[Override] |
||
| 23 | public function get() |
||
| 24 | { |
||
| 25 | return [ |
||
| 26 | $this->refreshSameCommand, |
||
| 27 | $this->refreshAnnotatedCommand, |
||
| 28 | ]; |
||
| 29 | } |
||
| 30 | } |
||
| 31 |