PHP Class Nelmio\Alice\FixtureBag

Inheritance: implements IteratorAggregate
Exibir arquivo Open project: nelmio/alice Class Usage Examples

Public Methods

Method 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 method

public get ( string $id ) : Nelmio\Alice\FixtureInterface
$id string Fixture ID.
return Nelmio\Alice\FixtureInterface

getIterator() public method

public getIterator ( )

has() public method

public has ( string $id ) : boolean
$id string Fixture ID.
return boolean

mergeWith() public method

public mergeWith ( self $newFixtures ) : self
$newFixtures self
return self

toArray() public method

public toArray ( ) : array
return array

with() public method

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
return self

without() public method

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
return self