PHP Class PhpSpec\Wrapper\Subject\SubjectWithArrayAccess

Exibir arquivo Open project: phpspec/phpspec Class Usage Examples

Public Methods

Method Description
__construct ( Caller $caller, PhpSpec\Formatter\Presenter\Presenter $presenter, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher )
offsetExists ( string | integer $key ) : boolean
offsetGet ( string | integer $key ) : mixed
offsetSet ( string | integer $key, mixed $value )
offsetUnset ( string | integer $key )

Private Methods

Method Description
cantUseAsArray ( mixed $subject ) : PhpSpec\Exception\Wrapper\SubjectException
checkIfSubjectImplementsArrayAccess ( mixed $subject )
interfaceNotImplemented ( ) : PhpSpec\Exception\Fracture\InterfaceNotImplementedException

Method Details

__construct() public method

public __construct ( Caller $caller, PhpSpec\Formatter\Presenter\Presenter $presenter, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher )
$caller Caller
$presenter PhpSpec\Formatter\Presenter\Presenter
$dispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface

offsetExists() public method

public offsetExists ( string | integer $key ) : boolean
$key string | integer
return boolean

offsetGet() public method

public offsetGet ( string | integer $key ) : mixed
$key string | integer
return mixed

offsetSet() public method

public offsetSet ( string | integer $key, mixed $value )
$key string | integer
$value mixed

offsetUnset() public method

public offsetUnset ( string | integer $key )
$key string | integer