PHP Class Themsaid\Langman\Commands\RenameCommand

Inheritance: extends Illuminate\Console\Command
Show file Open project: themsaid/laravel-langman

Protected Properties

Property Type Description
$description string The name and signature of the console command.
$files array Array of files grouped by filename.
$signature string The name and signature of the console command.

Public Methods

Method Description
__construct ( Manager $manager ) : void ListCommand constructor.
handle ( ) : mixed Execute the console command.

Private Methods

Method Description
getFilesContainingOldKey ( ) : array Get an array of application files containing the old key.
getTableRows ( array $files ) : array Get table rows for the list of files containing the old key.
listFilesContainingOldKey ( ) : void Show a table with application files containing the old key.
renameKey ( ) : void Rename the given oldKey to the newKey.

Method Details

__construct() public method

ListCommand constructor.
public __construct ( Manager $manager ) : void
$manager Themsaid\Langman\Manager
return void

handle() public method

Execute the console command.
public handle ( ) : mixed
return mixed

Property Details

$description protected property

The name and signature of the console command.
protected string $description
return string

$files protected property

Array of files grouped by filename.
protected array $files
return array

$signature protected property

The name and signature of the console command.
protected string $signature
return string