PHP 트레잇 Kurt\Google\Analytics\Traits\Handlers\MetricsHandler

파일 보기 프로젝트 열기: ozankurt/google-analytics

공개 메소드들

메소드 설명
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 )