PHP Class Bravo3\Orm\Drivers\Common\UnitOfWork

Afficher le fichier Open project: bravo3/orm Class Usage Examples

Protected Properties

Свойство Type Description
$commands Command[]

Méthodes publiques

Méthode Description
__construct ( )
addCommand ( string $name, array $arguments = [] ) Create a new command and add it to the queue
getCommands ( ) : Command[] Get all commands on the queue
getQueueSize ( ) : integer Returns the number of commands in the queue
getWork ( ) : Command | null Get the next command and remove it from the queue
purge ( ) Purge the command queue
queueCommand ( Command $command ) Add a command to the queue

Method Details

__construct() public méthode

public __construct ( )

addCommand() public méthode

Create a new command and add it to the queue
public addCommand ( string $name, array $arguments = [] )
$name string
$arguments array

getCommands() public méthode

Get all commands on the queue
public getCommands ( ) : Command[]
Résultat Command[]

getQueueSize() public méthode

Returns the number of commands in the queue
public getQueueSize ( ) : integer
Résultat integer

getWork() public méthode

Get the next command and remove it from the queue
public getWork ( ) : Command | null
Résultat Command | null

purge() public méthode

Purge the command queue
public purge ( )

queueCommand() public méthode

Add a command to the queue
public queueCommand ( Command $command )
$command Command

Property Details

$commands protected_oe property

protected Command[],Bravo3\Orm\Drivers\Common $commands
Résultat Command[]