|
| 1 | +<?php |
| 2 | + |
| 3 | +/* |
| 4 | + * This file is part of the xAPI package. |
| 5 | + * |
| 6 | + * (c) Christian Flothmann <[email protected]> |
| 7 | + * |
| 8 | + * For the full copyright and license information, please view the LICENSE |
| 9 | + * file that was distributed with this source code. |
| 10 | + */ |
| 11 | + |
| 12 | +namespace Xabbuh\XApi\Common\Test\Fixture; |
| 13 | + |
| 14 | +use Xabbuh\XApi\Common\Model\ActivityProfileDocument; |
| 15 | +use Xabbuh\XApi\Common\Model\AgentProfileDocument; |
| 16 | +use Xabbuh\XApi\Common\Model\Document; |
| 17 | +use Xabbuh\XApi\Common\Model\StateDocument; |
| 18 | + |
| 19 | +/** |
| 20 | + * Document fixtures. |
| 21 | + * |
| 22 | + * @author Christian Flothmann <[email protected]> |
| 23 | + */ |
| 24 | +class DocumentFixtures |
| 25 | +{ |
| 26 | + /** |
| 27 | + * Loads a document. |
| 28 | + * |
| 29 | + * @return \Xabbuh\XApi\Common\Model\DocumentInterface |
| 30 | + */ |
| 31 | + public static function getDocument() |
| 32 | + { |
| 33 | + $document = new Document(); |
| 34 | + $document['x'] = 'foo'; |
| 35 | + $document['y'] = 'bar'; |
| 36 | + |
| 37 | + return $document; |
| 38 | + } |
| 39 | + |
| 40 | + /** |
| 41 | + * Loads an activity profile document. |
| 42 | + * |
| 43 | + * @return \Xabbuh\XApi\Common\Model\ActivityProfileDocumentInterface |
| 44 | + */ |
| 45 | + public static function getActivityProfileDocument() |
| 46 | + { |
| 47 | + $document = new ActivityProfileDocument(); |
| 48 | + $document['x'] = 'foo'; |
| 49 | + $document['y'] = 'bar'; |
| 50 | + |
| 51 | + return $document; |
| 52 | + } |
| 53 | + |
| 54 | + /** |
| 55 | + * Loads an agent profile document. |
| 56 | + * |
| 57 | + * @return \Xabbuh\XApi\Common\Model\AgentProfileDocumentInterface |
| 58 | + */ |
| 59 | + public static function getAgentProfileDocument() |
| 60 | + { |
| 61 | + $document = new AgentProfileDocument(); |
| 62 | + $document['x'] = 'foo'; |
| 63 | + $document['y'] = 'bar'; |
| 64 | + |
| 65 | + return $document; |
| 66 | + } |
| 67 | + |
| 68 | + /** |
| 69 | + * Loads a state document. |
| 70 | + * |
| 71 | + * @return \Xabbuh\XApi\Common\Model\StateDocumentInterface |
| 72 | + */ |
| 73 | + public static function getStateDocument() |
| 74 | + { |
| 75 | + $document = new StateDocument(); |
| 76 | + $document['x'] = 'foo'; |
| 77 | + $document['y'] = 'bar'; |
| 78 | + |
| 79 | + return $document; |
| 80 | + } |
| 81 | +} |
0 commit comments