PHP Class PhpSpec\Wrapper\Subject\SubjectWithArrayAccess

Afficher le fichier Open project: phpspec/phpspec Class Usage Examples

Méthodes publiques

Méthode 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

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

Method Details

__construct() public méthode

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 méthode

public offsetExists ( string | integer $key ) : boolean
$key string | integer
Résultat boolean

offsetGet() public méthode

public offsetGet ( string | integer $key ) : mixed
$key string | integer
Résultat mixed

offsetSet() public méthode

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

offsetUnset() public méthode

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