-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathOutputContract.php
More file actions
25 lines (19 loc) · 654 Bytes
/
OutputContract.php
File metadata and controls
25 lines (19 loc) · 654 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
declare(strict_types=1);
/**
* Copyright (c) 2020-2026 guanguans<ityaozm@gmail.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @see https://github.com/guanguans/laravel-soar
*/
namespace Guanguans\LaravelSoar\Contracts;
use Illuminate\Console\Events\CommandFinished;
use Illuminate\Support\Collection;
use Symfony\Component\HttpFoundation\Response;
interface OutputContract
{
public function shouldOutput(CommandFinished|Response $outputter): bool;
public function output(Collection $scores, CommandFinished|Response $outputter): mixed;
}