PHP 클래스 Bravo3\Orm\Drivers\Common\UnitOfWork

파일 보기 프로젝트 열기: bravo3/orm 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$commands Command[]

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

public __construct ( )

addCommand() 공개 메소드

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

getCommands() 공개 메소드

Get all commands on the queue
public getCommands ( ) : Command[]
리턴 Command[]

getQueueSize() 공개 메소드

Returns the number of commands in the queue
public getQueueSize ( ) : integer
리턴 integer

getWork() 공개 메소드

Get the next command and remove it from the queue
public getWork ( ) : Command | null
리턴 Command | null

purge() 공개 메소드

Purge the command queue
public purge ( )

queueCommand() 공개 메소드

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

프로퍼티 상세

$commands 보호되어 있는 프로퍼티

protected Command[],Bravo3\Orm\Drivers\Common $commands
리턴 Command[]