PHP Trait Kurt\Google\Analytics\Traits\Handlers\DatesHandler

Show file Open project: ozankurt/google-analytics

Public Methods

Method Description
getEndDate ( ) : Carbon\Carbon Get the end date.
getPeriod ( ) : Period Get the current time period.
getStartDate ( ) : Carbon\Carbon Get the start date.
setEndDate ( Carbon\Carbon $endDate ) Set an end date.
setPeriod ( Period $period ) Set a time period.
setStartDate ( Carbon\Carbon $startDate ) Set a start date.

Method Details

getEndDate() public method

Get the end date.
public getEndDate ( ) : Carbon\Carbon
return Carbon\Carbon $startDate

getPeriod() public method

Get the current time period.
public getPeriod ( ) : Period
return Kurt\Google\Analytics\Period $period

getStartDate() public method

Get the start date.
public getStartDate ( ) : Carbon\Carbon
return Carbon\Carbon $startDate

setEndDate() public method

Set an end date.
public setEndDate ( Carbon\Carbon $endDate )
$endDate Carbon\Carbon

setPeriod() public method

Set a time period.
public setPeriod ( Period $period )
$period Kurt\Google\Analytics\Period

setStartDate() public method

Set a start date.
public setStartDate ( Carbon\Carbon $startDate )
$startDate Carbon\Carbon