\Pivot\Core\ModelsSchoolYear

SchoolYear

Summary

Methods
Properties
Constants
__construct()
getCurrentSchoolYear()
parse()
__toString()
render()
No public properties found
DEFAULT_DATE_SEPARATOR
DEFAULT_START_DATE
No protected methods found
No protected properties found
N/A
No private methods found
$startYear
N/A

Constants

DEFAULT_DATE_SEPARATOR

DEFAULT_DATE_SEPARATOR

DEFAULT_START_DATE

DEFAULT_START_DATE

Properties

$startYear

$startYear : integer

Type

integer

Methods

__construct()

__construct(integer  $startYear = null) 

Parameters

integer $startYear

getCurrentSchoolYear()

getCurrentSchoolYear(\Pivot\Core\Models\Subscription  $startSchoolYearDate) : \Pivot\Core\Models\SchoolYear

Parameters

\Pivot\Core\Models\Subscription $startSchoolYearDate

Returns

\Pivot\Core\Models\SchoolYear

parse()

parse(string  $stringRepresentation) : \Pivot\Core\Models\SchoolYear

Parameters

string $stringRepresentation

Throws

\Pivot\Core\Models\WrongYearRepresentation

Returns

\Pivot\Core\Models\SchoolYear

__toString()

__toString() : string

Returns school years, example: 2014

Returns

string

render()

render() : string

Returns school years, example: 2014-2015

Returns

string