1 | <?php |
||
19 | final class State |
||
20 | { |
||
21 | /** |
||
22 | * @var Activity The associated activity |
||
23 | */ |
||
24 | private $activity; |
||
25 | |||
26 | /** |
||
27 | * @var Agent The associated agent |
||
28 | */ |
||
29 | private $agent; |
||
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, Agent $agent, $stateId, $registrationId = null) |
|
48 | |||
49 | /** |
||
50 | * Returns the activity. |
||
51 | * |
||
52 | * @return Activity The activity |
||
53 | */ |
||
54 | public function getActivity() |
||
58 | |||
59 | /** |
||
60 | * Returns the agent. |
||
61 | * |
||
62 | * @return Agent The agent |
||
63 | */ |
||
64 | public function getAgent() |
||
65 | { |
||
66 | return $this->agent; |
||
67 | } |
||
68 | |||
69 | /** |
||
70 | * Returns the registration id. |
||
71 | * |
||
72 | * @return string The registration id |
||
73 | */ |
||
74 | public function getRegistrationId() |
||
78 | |||
79 | /** |
||
80 | * Returns the state's id. |
||
81 | * |
||
82 | * @return string The id |
||
83 | */ |
||
84 | public function getStateId() |
||
88 | } |
||
89 |