Documentation

AssociationYear
in package

Table of Contents

Constants

ASSOCIATION_YEAR_START_DAY  = 1
ASSOCIATION_YEAR_START_MONTH  = 7
A GEWIS association year starts 01-07.

Properties

$firstYear  : int

Methods

fromDate()  : static
Returns an instance of AssociationYear.
fromYear()  : static
Returns an instance of AssociationYear.
getEndDate()  : DateTime
Returns the last day of the association year.
getStartDate()  : DateTime
Returns the first day of the association year.
getYear()  : int
getYearString()  : string
Returns the Association year as a string.
__construct()  : mixed
Declare constructor private to enforce the use of the static methods.

Constants

ASSOCIATION_YEAR_START_DAY

public mixed ASSOCIATION_YEAR_START_DAY = 1

ASSOCIATION_YEAR_START_MONTH

A GEWIS association year starts 01-07.

public mixed ASSOCIATION_YEAR_START_MONTH = 7

Properties

$firstYear

protected int $firstYear

the first calendar year of the association year

Methods

fromDate()

Returns an instance of AssociationYear.

public static fromDate(DateTime $dateTime) : static
Parameters
$dateTime : DateTime

date to find the AssociationYear for

Return values
static

fromYear()

Returns an instance of AssociationYear.

public static fromYear(int $year) : static
Parameters
$year : int

first calendar year of the association year

Return values
static

getEndDate()

Returns the last day of the association year.

public getEndDate() : DateTime
Return values
DateTime

getStartDate()

Returns the first day of the association year.

public getStartDate() : DateTime
Return values
DateTime

getYear()

public getYear() : int
Return values
int

the first calendar year of the association year

getYearString()

Returns the Association year as a string.

public getYearString() : string
Return values
string

the association year

__construct()

Declare constructor private to enforce the use of the static methods.

private final __construct() : mixed

        
On this page

Search results