1 | <?php |
||
19 | final class State |
||
20 | { |
||
21 | /** |
||
22 | * @var Activity The associated activity |
||
23 | */ |
||
24 | private $activity; |
||
25 | |||
26 | /** |
||
27 | * @var Actor The associated actor |
||
28 | */ |
||
29 | private $actor; |
||
30 | |||
31 | /** |
||
32 | * @var string An optional registration id |
||
33 | */ |
||
34 | private $registrationId; |
||
35 | |||
36 | /** |
||
37 | * @var string The state id |
||
38 | */ |
||
39 | private $stateId; |
||
40 | |||
41 | 4 | public function __construct(Activity $activity, Actor $actor, $stateId, $registrationId = null) |
|
52 | |||
53 | /** |
||
54 | * Returns the activity. |
||
55 | * |
||
56 | * @return Activity The activity |
||
57 | */ |
||
58 | public function getActivity() |
||
62 | |||
63 | /** |
||
64 | * Returns the actor. |
||
65 | * |
||
66 | * @return Actor The actor |
||
67 | * |
||
68 | * @deprecated since 1.1.1 and 2.0.1, to be removed in 3.0 |
||
69 | */ |
||
70 | public function getActor() |
||
76 | |||
77 | /** |
||
78 | * Returns the agent. |
||
79 | * |
||
80 | * @return Actor The agent |
||
81 | */ |
||
82 | public function getAgent() |
||
86 | |||
87 | /** |
||
88 | * Returns the registration id. |
||
89 | * |
||
90 | * @return string The registration id |
||
91 | */ |
||
92 | public function getRegistrationId() |
||
96 | |||
97 | /** |
||
98 | * Returns the state's id. |
||
99 | * |
||
100 | * @return string The id |
||
101 | */ |
||
102 | public function getStateId() |
||
106 | } |
||
107 |