PHP 클래스 Nelmio\Alice\FixtureBag

상속: implements IteratorAggregate
파일 보기 프로젝트 열기: nelmio/alice 1 사용 예제들

공개 메소드들

메소드 설명
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