PHP Class Alex\BehatLauncher\Behat\OutputFileList

Files are stored in temporary folder until they're saved to a dedicated folder.
Inheritance: implements IteratorAggregate, implements Countable, implements Symfony\Component\Serializer\Normalizer\NormalizableInterface
Show file Open project: alexandresalome/behat-launcher Class Usage Examples

Public Methods

Method Description
__construct ( array $files = [] )
append ( $format, $content ) : OutputFile Appends a content to given format.
count ( )
get ( $format ) Returns an output file, given his name.
getIterator ( )
getNames ( ) : string[]
normalize ( Symfony\Component\Serializer\Normalizer\NormalizerInterface $normalizer, $format = null, array $context = [] )
reset ( ) : OutputFileList Reinitialize the collection, removes all files.
toArrayOfID ( ) : array

Method Details

__construct() public method

public __construct ( array $files = [] )
$files array

append() public method

Appends a content to given format.
public append ( $format, $content ) : OutputFile
return OutputFile

count() public method

public count ( )

get() public method

Returns an output file, given his name.
public get ( $format )

getIterator() public method

public getIterator ( )

getNames() public method

public getNames ( ) : string[]
return string[]

normalize() public method

public normalize ( Symfony\Component\Serializer\Normalizer\NormalizerInterface $normalizer, $format = null, array $context = [] )
$normalizer Symfony\Component\Serializer\Normalizer\NormalizerInterface
$context array

reset() public method

Reinitialize the collection, removes all files.
public reset ( ) : OutputFileList
return OutputFileList

toArrayOfID() public method

public toArrayOfID ( ) : array
return array an array of ID