| 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 | public function __construct(Activity $activity, Actor $actor, $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 actor. |
||
| 61 | * |
||
| 62 | * @return Actor The actor |
||
| 63 | */ |
||
| 64 | public function getActor() |
||
| 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 |