PHP Класс Nelmio\Alice\FixtureBag

Наследование: implements IteratorAggregate
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

get() публичный Метод

public get ( string $id ) : Nelmio\Alice\FixtureInterface
$id string Fixture ID.
Результат Nelmio\Alice\FixtureInterface

getIterator() публичный Метод

public getIterator ( )

has() публичный Метод

public has ( string $id ) : boolean
$id string Fixture ID.
Результат boolean

mergeWith() публичный Метод

public mergeWith ( self $newFixtures ) : self
$newFixtures self
Результат self

toArray() публичный Метод

public toArray ( ) : array
Результат array

with() публичный Метод

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
Результат self

without() публичный Метод

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
Результат self