PHP Class Nelmio\Alice\FixtureBag

Inheritance: implements IteratorAggregate
Afficher le fichier Open project: nelmio/alice Class Usage Examples

Méthodes publiques

Méthode Description
get ( string $id ) : Nelmio\Alice\FixtureInterface
getIterator ( )
has ( string $id ) : boolean
mergeWith ( self $newFixtures ) : self
toArray ( ) : array
with ( Nelmio\Alice\FixtureInterface $fixture ) : self Creates a new instance which will have the given fixture. If a fixture of that id already existed, it will be overridden.
without ( Nelmio\Alice\FixtureInterface $fixture ) : self Creates a new instance which will not contain the fixture of the given ID. Will still proceed even if such fixture does not exist.

Method Details

get() public méthode

public get ( string $id ) : Nelmio\Alice\FixtureInterface
$id string Fixture ID.
Résultat Nelmio\Alice\FixtureInterface

getIterator() public méthode

public getIterator ( )

has() public méthode

public has ( string $id ) : boolean
$id string Fixture ID.
Résultat boolean

mergeWith() public méthode

public mergeWith ( self $newFixtures ) : self
$newFixtures self
Résultat self

toArray() public méthode

public toArray ( ) : array
Résultat array

with() public méthode

Creates a new instance which will have the given fixture. If a fixture of that id already existed, it will be overridden.
public with ( Nelmio\Alice\FixtureInterface $fixture ) : self
$fixture Nelmio\Alice\FixtureInterface
Résultat self

without() public méthode

Creates a new instance which will not contain the fixture of the given ID. Will still proceed even if such fixture does not exist.
public without ( Nelmio\Alice\FixtureInterface $fixture ) : self
$fixture Nelmio\Alice\FixtureInterface
Résultat self