PHP Class Elcodi\Admin\MetricBundle\Twig\MetricIntervalsExtension

Inheritance: extends Twig_Extensio\Twig_Extension
Mostra file Open project: elcodi/bamboo

Protected Properties

Property Type Description
$intervalsResolver Elcodi\Admin\MetricBundle\Services\MetricIntervalsResolver Intervals Resolver

Public Methods

Method Description
__construct ( MetricIntervalsResolver $intervalsResolver ) Construct
createIntervalContainer ( string $type ) : integer Return metric beacons unique counter
getFunctions ( ) : Twig_SimpleFunctio\Twig_SimpleFunction[] Returns a list of functions to add to the existing list.
getName ( ) : string Returns the name of the extension.

Method Details

__construct() public method

Construct
public __construct ( MetricIntervalsResolver $intervalsResolver )
$intervalsResolver Elcodi\Admin\MetricBundle\Services\MetricIntervalsResolver Interval Resolver

createIntervalContainer() public method

Return metric beacons unique counter
public createIntervalContainer ( string $type ) : integer
$type string Type
return integer Beacons unique

getFunctions() public method

Returns a list of functions to add to the existing list.
public getFunctions ( ) : Twig_SimpleFunctio\Twig_SimpleFunction[]
return Twig_SimpleFunctio\Twig_SimpleFunction[] An array of functions

getName() public method

Returns the name of the extension.
public getName ( ) : string
return string The extension name

Property Details

$intervalsResolver protected_oe property

Intervals Resolver
protected MetricIntervalsResolver,Elcodi\Admin\MetricBundle\Services $intervalsResolver
return Elcodi\Admin\MetricBundle\Services\MetricIntervalsResolver