Oihana PHP Arango

ArangoCommand extends Kernel uses ArangoActions

The command to manage an ArangoDB database.

Table of Contents

Constants

NAME  : string = 'command:arangodb'
The default name of the command.

Methods

__construct()  : mixed
Creates a new ArangoDBCommand.
__destruct()  : mixed
The destructor method will be called as soon as there are no other references to a particular object, or in any order during the shutdown sequence.
getSubscribedSignals()  : array<string|int, mixed>
Returns the list of signals to subscribe.
handleSignal()  : int|false
The method will be called when the application is signaled.
cleanup()  : void
Cleanup the command when is finished.
configure()  : void
Configures the current command.
execute()  : int
Executes the current command.

Constants

NAME

The default name of the command.

public string NAME = 'command:arangodb'

Methods

__construct()

Creates a new ArangoDBCommand.

public __construct(string|null $name[, Container|null $container = null ][, array<string|int, mixed> $init = [] ]) : mixed
Parameters
$name : string|null
$container : Container|null = null
$init : array<string|int, mixed> = []
Tags
throws
DependencyException
NotFoundException
ContainerExceptionInterface
NotFoundExceptionInterface

__destruct()

The destructor method will be called as soon as there are no other references to a particular object, or in any order during the shutdown sequence.

public __destruct() : mixed
Tags
throws
DirectoryException

getSubscribedSignals()

Returns the list of signals to subscribe.

public getSubscribedSignals() : array<string|int, mixed>
Return values
array<string|int, mixed>

handleSignal()

The method will be called when the application is signaled.

public handleSignal(int $signal[, int|false $previousExitCode = 0 ]) : int|false
Parameters
$signal : int
$previousExitCode : int|false = 0
Tags
throws
DirectoryException
Return values
int|false

The exit code to return or false to continue the normal execution

cleanup()

Cleanup the command when is finished.

protected cleanup() : void
Tags
throws
DirectoryException

configure()

Configures the current command.

protected configure() : void

execute()

Executes the current command.

protected execute(InputInterface $input, OutputInterface $output) : int
Parameters
$input : InputInterface
$output : OutputInterface
Tags
throws
LogicException

When this abstract method is not implemented

DirectoryException
see
setCode()
Return values
int

0 if everything went fine, or an exit code

On this page

Search results