51 lines
1.5 KiB
PHP
51 lines
1.5 KiB
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the xAPI package.
|
|
*
|
|
* (c) Christian Flothmann <christian.flothmann@xabbuh.de>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Xabbuh\XApi\DataFixtures;
|
|
|
|
use Xabbuh\XApi\Model\IRI;
|
|
use Xabbuh\XApi\Model\LanguageMap;
|
|
use Xabbuh\XApi\Model\Verb;
|
|
|
|
/**
|
|
* xAPI verb fixtures.
|
|
*
|
|
* These fixtures are borrowed from the
|
|
* {@link https://github.com/adlnet/xAPI_LRS_Test Experience API Learning Record Store Conformance Test} package.
|
|
*/
|
|
class VerbFixtures
|
|
{
|
|
public static function getTypicalVerb()
|
|
{
|
|
return new Verb(IRI::fromString('http://tincanapi.com/conformancetest/verbid'), LanguageMap::create(array('en-US' => 'test')));
|
|
}
|
|
|
|
public static function getVoidingVerb()
|
|
{
|
|
return new Verb(IRI::fromString('http://adlnet.gov/expapi/verbs/voided'), LanguageMap::create(array('en-US' => 'voided')));
|
|
}
|
|
|
|
public static function getIdVerb()
|
|
{
|
|
return new Verb(IRI::fromString('http://tincanapi.com/conformancetest/verbid'));
|
|
}
|
|
|
|
public static function getIdAndDisplayVerb()
|
|
{
|
|
return new Verb(IRI::fromString('http://tincanapi.com/conformancetest/verbid'), LanguageMap::create(array('en-US' => 'test')));
|
|
}
|
|
|
|
public static function getForQueryVerb()
|
|
{
|
|
return new Verb(IRI::fromString('http://tincanapi.com/conformancetest/verbid/forQuery'), LanguageMap::create(array('en-US' => 'for query')));
|
|
}
|
|
}
|