Skip to content

Commit 53ae813

Browse files
committed
add typeHinting for CultureFeed_Uitpas_Calendar
1 parent becdfa2 commit 53ae813

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

CultureFeed/CultureFeed/Uitpas/Calendar.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,14 @@
33
class CultureFeed_Uitpas_Calendar {
44

55
/**
6-
* The periods of the calendar object
7-
*
86
* @var CultureFeed_Uitpas_Calendar_Timestamp[]
97
*/
10-
public $timestamps = array();
8+
public array $timestamps = array();
119

1210
/**
13-
* The periods of the calendar object
14-
*
1511
* @var CultureFeed_Uitpas_Calendar_Period[]
1612
*/
17-
public $periods = array();
13+
public array $periods = array();
1814

1915
public function addPeriod(CultureFeed_Uitpas_Calendar_Period $period): void {
2016
$this->periods[] = $period;
@@ -24,7 +20,8 @@ public function addTimestamp(CultureFeed_Uitpas_Calendar_Timestamp $timestamp):
2420
$this->timestamps[] = $timestamp;
2521
}
2622

27-
public static function createFromXML(CultureFeed_SimpleXMLElement $object) {
23+
public static function createFromXML(CultureFeed_SimpleXMLElement $object): CultureFeed_Uitpas_Calendar
24+
{
2825
$object->registerXPathNamespace('cdb', CultureFeed_Cdb_Default::CDB_SCHEME_URL);
2926

3027
$calendar = new CultureFeed_Uitpas_Calendar();

0 commit comments

Comments
 (0)