PHP Трейт Kurt\Google\Analytics\Traits\Handlers\MetricsHandler

Показать файл Открыть проект

Открытые методы

Метод Описание
getMetrics ( ) : array Get the metrics of current query.
mergeMetrics ( string | array $newMetrics ) Convert $newMetrics to array if string given and pass the array to a helper function.
setMetrics ( $metrics ) Set the metrics of current query while converting string values to array.

Приватные методы

Метод Описание
getMetricsAsString ( ) : string Get the metrics of current query as string.
mergeNewMetricsToCurrentOnes ( array $newMetrics ) : array Merge $newMetrics with current ones.
metricsAreSet ( ) Determine if metrics are set.

Описание методов

getMetrics() публичный Метод

Get the metrics of current query.
public getMetrics ( ) : array
Результат array

mergeMetrics() публичный Метод

Convert $newMetrics to array if string given and pass the array to a helper function.
public mergeMetrics ( string | array $newMetrics )
$newMetrics string | array

setMetrics() публичный Метод

Set the metrics of current query while converting string values to array.
public setMetrics ( $metrics )