PHP Class Smalot\Magento\MultiCallQueue

Inheritance: implements Smalot\Magento\MultiCallQueueInterface
Exibir arquivo Open project: smalot/magento-client

Protected Properties

Property Type Description
$position integer
$queue array
$remoteAdapter Smalot\Magento\RemoteAdapterInterface

Public Methods

Method Description
__construct ( Smalot\Magento\RemoteAdapterInterface $remoteAdapter )
addAction ( Smalot\Magento\ActionInterface $action, callable $callback = null )
count ( ) : integer (PHP 5 >= 5.1.0)
Count elements of an object
current ( ) : mixed (PHP 5 >= 5.0.0)
Return the current element
execute ( ) : array
flush ( )
key ( ) : integer (PHP 5 >= 5.0.0)
Return the key of the current element
next ( ) : void (PHP 5 >= 5.0.0)
Move forward to next element
offsetExists ( mixed $offset ) : boolean (PHP 5 >= 5.0.0)
Whether a offset exists
offsetGet ( mixed $offset ) : mixed (PHP 5 >= 5.0.0)
Offset to retrieve
offsetSet ( mixed $offset, mixed $value ) : void (PHP 5 >= 5.0.0)
Offset to set
offsetUnset ( mixed $offset ) : void (PHP 5 >= 5.0.0)
Offset to unset
rewind ( ) : void (PHP 5 >= 5.0.0)
Rewind the Iterator to the first element
valid ( ) : boolean (PHP 5 >= 5.0.0)
Checks if current position is valid

Method Details

__construct() public method

public __construct ( Smalot\Magento\RemoteAdapterInterface $remoteAdapter )
$remoteAdapter Smalot\Magento\RemoteAdapterInterface

addAction() public method

public addAction ( Smalot\Magento\ActionInterface $action, callable $callback = null )
$action Smalot\Magento\ActionInterface
$callback callable

count() public method

(PHP 5 >= 5.1.0)
Count elements of an object
public count ( ) : integer
return integer The custom count as an integer.

The return value is cast to an integer.

current() public method

(PHP 5 >= 5.0.0)
Return the current element
public current ( ) : mixed
return mixed Can return any type.

execute() public method

public execute ( ) : array
return array

flush() public method

public flush ( )

key() public method

(PHP 5 >= 5.0.0)
Return the key of the current element
public key ( ) : integer
return integer scalar on success, or null on failure.

next() public method

(PHP 5 >= 5.0.0)
Move forward to next element
public next ( ) : void
return void Any returned value is ignored.

offsetExists() public method

(PHP 5 >= 5.0.0)
Whether a offset exists
public offsetExists ( mixed $offset ) : boolean
$offset mixed

An offset to check for.

return boolean true on success or false on failure.

The return value will be casted to boolean if non-boolean was returned.

offsetGet() public method

(PHP 5 >= 5.0.0)
Offset to retrieve
public offsetGet ( mixed $offset ) : mixed
$offset mixed

The offset to retrieve.

return mixed Can return all value types.

offsetSet() public method

(PHP 5 >= 5.0.0)
Offset to set
public offsetSet ( mixed $offset, mixed $value ) : void
$offset mixed

The offset to assign the value to.

$value mixed

The value to set.

return void

offsetUnset() public method

(PHP 5 >= 5.0.0)
Offset to unset
public offsetUnset ( mixed $offset ) : void
$offset mixed

The offset to unset.

return void

rewind() public method

(PHP 5 >= 5.0.0)
Rewind the Iterator to the first element
public rewind ( ) : void
return void Any returned value is ignored.

valid() public method

(PHP 5 >= 5.0.0)
Checks if current position is valid
public valid ( ) : boolean
return boolean The return value will be casted to boolean and then evaluated. Returns true on success or false on failure.

Property Details

$position protected_oe property

protected int $position
return integer

$queue protected_oe property

protected array $queue
return array

$remoteAdapter protected_oe property

protected RemoteAdapterInterface,Smalot\Magento $remoteAdapter
return Smalot\Magento\RemoteAdapterInterface