PHP Class Browscap\Helper\CollectionCreator

Author: James Titcumb ([email protected])
Author: Thomas Müller ([email protected])
Show file Open project: browscap/browscap Class Usage Examples

Public Methods

Method Description
createDataCollection ( string $resourceFolder ) : DataCollection Create and populate a data collection object from a resource folder
getLogger ( ) : Psr\Log\LoggerInterface
setDataCollection ( DataCollection $collection ) : CollectionCreator
setLogger ( Psr\Log\LoggerInterface $logger ) : CollectionCreator

Method Details

createDataCollection() public method

Create and populate a data collection object from a resource folder
public createDataCollection ( string $resourceFolder ) : DataCollection
$resourceFolder string
return Browscap\Data\DataCollection

getLogger() public method

public getLogger ( ) : Psr\Log\LoggerInterface
return Psr\Log\LoggerInterface $logger

setDataCollection() public method

public setDataCollection ( DataCollection $collection ) : CollectionCreator
$collection Browscap\Data\DataCollection
return CollectionCreator

setLogger() public method

public setLogger ( Psr\Log\LoggerInterface $logger ) : CollectionCreator
$logger Psr\Log\LoggerInterface
return CollectionCreator