PHP Class Dingo\Api\Console\Command\Docs

Inheritance: extends Illuminate\Console\Command
Afficher le fichier Open project: dingo/api

Protected Properties

Свойство Type Description
$blueprint Dingo\Blueprint\Blueprint The blueprint instance.
$description string The console command description.
$docs Dingo\Blueprint\Blueprint Blueprint instance.
$name string Default documentation name.
$router Dingo\Api\Routing\Router Router instance.
$signature string The name and signature of the console command.
$version string Default documentation version.
$writer Dingo\Blueprint\Writer Writer instance.

Méthodes publiques

Méthode Description
__construct ( Router $router, Blueprint $blueprint, Dingo\Blueprint\Writer $writer, string $name, string $version ) : void Create a new docs command instance.
handle ( ) : mixed Execute the console command.

Méthodes protégées

Méthode Description
addControllerIfNotExists ( Collection $controllers, object $controller ) : void Add a controller to the collection if it does not exist. If the controller implements an interface suffixed with "Docs" it will be used instead of the controller.
getControllers ( ) : array Get all the controller instances.
getDocName ( ) : string Get the documentation name.
getIncludePath ( ) : string Get the include path for documentation files.
getVersion ( ) : string Get the documentation version.

Method Details

__construct() public méthode

Create a new docs command instance.
public __construct ( Router $router, Blueprint $blueprint, Dingo\Blueprint\Writer $writer, string $name, string $version ) : void
$router Dingo\Api\Routing\Router
$blueprint Dingo\Blueprint\Blueprint
$writer Dingo\Blueprint\Writer
$name string
$version string
Résultat void

addControllerIfNotExists() protected méthode

Add a controller to the collection if it does not exist. If the controller implements an interface suffixed with "Docs" it will be used instead of the controller.
protected addControllerIfNotExists ( Collection $controllers, object $controller ) : void
$controllers Illuminate\Support\Collection
$controller object
Résultat void

getControllers() protected méthode

Get all the controller instances.
protected getControllers ( ) : array
Résultat array

getDocName() protected méthode

Get the documentation name.
protected getDocName ( ) : string
Résultat string

getIncludePath() protected méthode

Get the include path for documentation files.
protected getIncludePath ( ) : string
Résultat string

getVersion() protected méthode

Get the documentation version.
protected getVersion ( ) : string
Résultat string

handle() public méthode

Execute the console command.
public handle ( ) : mixed
Résultat mixed

Property Details

$blueprint protected_oe property

The blueprint instance.
protected Blueprint,Dingo\Blueprint $blueprint
Résultat Dingo\Blueprint\Blueprint

$description protected_oe property

The console command description.
protected string $description
Résultat string

$docs protected_oe property

Blueprint instance.
protected Blueprint,Dingo\Blueprint $docs
Résultat Dingo\Blueprint\Blueprint

$name protected_oe property

Default documentation name.
protected string $name
Résultat string

$router protected_oe property

Router instance.
protected Router,Dingo\Api\Routing $router
Résultat Dingo\Api\Routing\Router

$signature protected_oe property

The name and signature of the console command.
protected string $signature
Résultat string

$version protected_oe property

Default documentation version.
protected string $version
Résultat string

$writer protected_oe property

Writer instance.
protected Writer,Dingo\Blueprint $writer
Résultat Dingo\Blueprint\Writer