Files
monica/app/Console/Commands/Helpers/CommandCallerContract.php
T
2021-09-12 09:13:02 +02:00

28 lines
928 B
PHP

<?php
namespace App\Console\Commands\Helpers;
use Illuminate\Console\Command;
interface CommandCallerContract
{
/**
* Print a message on the console, then execute a command.
*
* @param Command $command Laravel command context
* @param string $message Message to output
* @param string $commandline Command to execute
*/
public function exec(Command $command, string $message, string $commandline): void;
/**
* Print a message on the console, then execute an artisan command.
*
* @param Command $command Laravel command context
* @param string $message Message to output
* @param string $commandline Artisan command name to execute
* @param array $arguments Optional arguments to pass to the artisan command
*/
public function artisan(Command $command, string $message, string $commandline, array $arguments = []): void;
}