%PDF- %PDF-
Direktori : /var/www/html/kpk/api/vendor/arcanedev/support/src/Bases/ |
Current File : /var/www/html/kpk/api/vendor/arcanedev/support/src/Bases/Command.php |
<?php namespace Arcanedev\Support\Bases; use Illuminate\Console\Command as IlluminateCommand; use Symfony\Component\Console\Helper\TableSeparator; /** * Class Command * * @package Arcanedev\Support\Laravel\Bases * @author ARCANEDEV <arcanedev.maroc@gmail.com> */ abstract class Command extends IlluminateCommand { /* ------------------------------------------------------------------------------------------------ | Main Functions | ------------------------------------------------------------------------------------------------ */ /** * Execute the console command. */ abstract public function handle(); /* ------------------------------------------------------------------------------------------------ | Other Functions | ------------------------------------------------------------------------------------------------ */ /** * Get table separator * * @return TableSeparator */ protected function tableSeparator() { return new TableSeparator; } /** * Display header. * * @param string $text * * @deprecated Use the frame($text) method instead. */ protected function header($text) { $this->frame($text); } /** * Display frame the text info. * * @param string $text */ protected function frame($text) { $line = '+' . str_repeat('-', strlen($text) + 4) . '+'; $this->info($line); $this->info("| $text |"); $this->info($line); } }