PHP Class AppserverIo\Appserver\Core\Commands\DoctrineCommand

Inheritance: implements AppserverIo\Appserver\Core\Commands\CommandInterface
Show file Open project: appserver-io/appserver

Public Methods

Method Description
__construct ( React\Socket\ConnectionInterface $connection, AppserverIo\Appserver\Core\Interfaces\ApplicationServerInterface $applicationServer ) Initializes the command with the connection and the application server instance to execute the command on.
execute ( array $params = [] ) : mixed | null Executes the command.

Method Details

__construct() public method

Initializes the command with the connection and the application server instance to execute the command on.
public __construct ( React\Socket\ConnectionInterface $connection, AppserverIo\Appserver\Core\Interfaces\ApplicationServerInterface $applicationServer )
$connection React\Socket\ConnectionInterface The connection instance
$applicationServer AppserverIo\Appserver\Core\Interfaces\ApplicationServerInterface The application server instance

execute() public method

Executes the command.
See also: AppserverIo\Appserver\Core\Commands\CommandInterface::execute()
public execute ( array $params = [] ) : mixed | null
$params array The arguments passed to the command
return mixed | null The result of the command