TimeGeneratorFactory
in package
TimeGeneratorFactory retrieves a default time generator, based on the environment
Table of Contents
- $nodeProvider : NodeProviderInterface
- $timeConverter : TimeConverterInterface
- $timeProvider : TimeProviderInterface
- __construct() : mixed
- getGenerator() : TimeGeneratorInterface
- Returns a default time generator, based on the current environment
Properties
$nodeProvider
private
NodeProviderInterface
$nodeProvider
$timeConverter
private
TimeConverterInterface
$timeConverter
$timeProvider
private
TimeProviderInterface
$timeProvider
Methods
__construct()
public
__construct(NodeProviderInterface $nodeProvider, TimeConverterInterface $timeConverter, TimeProviderInterface $timeProvider) : mixed
Parameters
- $nodeProvider : NodeProviderInterface
- $timeConverter : TimeConverterInterface
- $timeProvider : TimeProviderInterface
Return values
mixed —getGenerator()
Returns a default time generator, based on the current environment
public
getGenerator() : TimeGeneratorInterface