PHP Класс ThreeScaleAuthorizeResponseUsageReport

One object of this class always corresponds to one usage limit defined on the plan.
Показать файл Открыть проект

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

Метод Описание
getCurrentValue ( ) : integer The value the application alredy spent in the current period of the usage limit.
getMaxValue ( ) : integer Maximum value allowed by the usage limit for the current period.
getMetric ( ) Name of the metric the usage limit is defined for.
getPeriod ( ) The period of the usage limit.
getPeriodEnd ( ) : integer End of the current period of the usage limit, as unix timestamp.
getPeriodStart ( ) : integer Start of the current period of the usage limit, as unix timestamp.
isExceeded ( ) Is the usage limit corresponding to this report exceeded?
setCurrentValue ( $value )
setMaxValue ( $value )
setMetric ( $metric )
setPeriod ( $period )
setPeriodInterval ( $start, $end )

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

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

The value the application alredy spent in the current period of the usage limit.
public getCurrentValue ( ) : integer
Результат integer

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

Maximum value allowed by the usage limit for the current period.
public getMaxValue ( ) : integer
Результат integer

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

Name of the metric the usage limit is defined for.
public getMetric ( )

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

The period of the usage limit.
public getPeriod ( )

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

End of the current period of the usage limit, as unix timestamp.
public getPeriodEnd ( ) : integer
Результат integer (unit timestamp)

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

Start of the current period of the usage limit, as unix timestamp.
public getPeriodStart ( ) : integer
Результат integer (unit timestamp)

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

Is the usage limit corresponding to this report exceeded?
public isExceeded ( )

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

public setCurrentValue ( $value )

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

public setMaxValue ( $value )

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

public setMetric ( $metric )

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

public setPeriod ( $period )

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

public setPeriodInterval ( $start, $end )