| @@ 59-68 (lines=10) @@ | ||
| 56 | * |
|
| 57 | * @return ActivityProfileDocument |
|
| 58 | */ |
|
| 59 | public static function getActivityProfileDocument(DocumentData $documentData = null) |
|
| 60 | { |
|
| 61 | if (null === $documentData) { |
|
| 62 | $documentData = static::getDocumentData(); |
|
| 63 | } |
|
| 64 | ||
| 65 | $activityProfile = new ActivityProfile('profile-id', new Activity('activity-id')); |
|
| 66 | ||
| 67 | return new ActivityProfileDocument($activityProfile, $documentData); |
|
| 68 | } |
|
| 69 | ||
| 70 | /** |
|
| 71 | * Loads an agent profile document. |
|
| @@ 95-105 (lines=11) @@ | ||
| 92 | * |
|
| 93 | * @return StateDocument |
|
| 94 | */ |
|
| 95 | public static function getStateDocument(DocumentData $documentData = null) |
|
| 96 | { |
|
| 97 | if (null === $documentData) { |
|
| 98 | $documentData = static::getDocumentData(); |
|
| 99 | } |
|
| 100 | ||
| 101 | $agent = new Agent('mailto:[email protected]'); |
|
| 102 | $activity = new Activity('activity-id'); |
|
| 103 | ||
| 104 | return new StateDocument(new State($activity, $agent, 'state-id'), $documentData); |
|
| 105 | } |
|
| 106 | } |
|
| 107 | ||