Skip to content

Commit 316b03f

Browse files
committed
Add some typehinting to CultureFeed_Uitpas_Event_CultureEvent
1 parent 8dc95f7 commit 316b03f

File tree

1 file changed

+4
-38
lines changed

1 file changed

+4
-38
lines changed

CultureFeed/CultureFeed/Uitpas/Event/CultureEvent.php

Lines changed: 4 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -22,49 +22,15 @@ class CultureFeed_Uitpas_Event_CultureEvent extends CultureFeed_Uitpas_ValueObje
2222

2323
public string $cdbid;
2424

25-
/**
26-
* The ID of the location of the event
27-
*
28-
* @var string
29-
*/
30-
public $locationId;
25+
public ?string $locationId;
3126

32-
/**
33-
* The name of the location of the event
34-
*
35-
* @var string
36-
*/
37-
public $locationName;
27+
public ?string $locationName;
3828

39-
/**
40-
* The organiserId cdbid van de inrichter
41-
*
42-
* @var string
43-
*/
44-
public $organiserId;
29+
public ?string $organiserId;
4530

46-
/**
47-
* The organiserId cdbid van de inrichter
48-
* the API has an error and it needs actorId in order to register an event
49-
*
50-
* @var string
51-
*/
52-
public $actorId;
31+
public string $actorId;
5332

5433
/**
55-
* The distribution key id(s) of the event.
56-
*
57-
* Historically the API docs used to indicate that this property should always
58-
* be a single value, while in reality it was always allowed to be an array.
59-
*
60-
* When parsing from xml this property will always be a value of
61-
* DistributionKey objects, containing both an id and name.
62-
*
63-
* When POSTing it can be a single string, specifically the id of a single
64-
* distribution key. This is to maintain backwards compatibility with existing
65-
* code. Alternatively it can be an array of DistributionKey objects. In that
66-
* case only the id property of the DistributionKey object is required.
67-
*
6834
* @var \CultureFeed_Uitpas_DistributionKey[]|string
6935
*/
7036
public $distributionKey;

0 commit comments

Comments
 (0)