PHP Class Kurt\Google\Analytics\Period

Show file Open project: ozankurt/google-analytics Class Usage Examples

Public Properties

Property Type Description
$endDate Carbon\Carbon Starting date of the period.
$startDate Carbon\Carbon Starting date of the period.

Public Methods

Method Description
__construct ( Carbon\Carbon $startDate, Carbon\Carbon $endDate )
getEndDate ( ) : Carbon\Carbon Gets the Starting date of the period.
getStartDate ( ) : Carbon\Carbon Gets the Starting date of the period.
setEndDate ( Carbon\Carbon $endDate ) : self Sets the Starting date of the period.
setStartDate ( Carbon\Carbon $startDate ) : self Sets the Starting date of the period.
validatePeriod ( Carbon\Carbon $startDate = null, Carbon\Carbon $endDate = null )

Method Details

__construct() public method

public __construct ( Carbon\Carbon $startDate, Carbon\Carbon $endDate )
$startDate Carbon\Carbon
$endDate Carbon\Carbon

getEndDate() public method

Gets the Starting date of the period.
public getEndDate ( ) : Carbon\Carbon
return Carbon\Carbon

getStartDate() public method

Gets the Starting date of the period.
public getStartDate ( ) : Carbon\Carbon
return Carbon\Carbon

setEndDate() public method

Sets the Starting date of the period.
public setEndDate ( Carbon\Carbon $endDate ) : self
$endDate Carbon\Carbon
return self

setStartDate() public method

Sets the Starting date of the period.
public setStartDate ( Carbon\Carbon $startDate ) : self
$startDate Carbon\Carbon
return self

validatePeriod() public method

public validatePeriod ( Carbon\Carbon $startDate = null, Carbon\Carbon $endDate = null )
$startDate Carbon\Carbon
$endDate Carbon\Carbon

Property Details

$endDate public property

Starting date of the period.
public Carbon,Carbon $endDate
return Carbon\Carbon

$startDate public property

Starting date of the period.
public Carbon,Carbon $startDate
return Carbon\Carbon