ActorJsonFixtures::getGroup()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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\Serializer\Tests\Fixtures;
13
14
/**
15
 * JSON encoded actor fixtures.
16
 *
17
 * @author Christian Flothmann <[email protected]>
18
 */
19
class ActorJsonFixtures extends JsonFixtures
20
{
21
    /**
22
     * Loads an agent.
23
     *
24
     * @return string
25
     */
26
    public static function getAgent()
27
    {
28
        return static::load('agent');
29
    }
30
31
    /**
32
     * Loads an agent without an object type reference included.
33
     *
34
     * @return string
35
     */
36
    public static function getAgentWithoutObjectType()
37
    {
38
        return static::load('agent_without_object_type');
39
    }
40
41
    /**
42
     * Loads a group.
43
     *
44
     * @return string
45
     */
46
    public static function getGroup()
47
    {
48
        return static::load('group');
49
    }
50
51
    /**
52
     * Loads an anonymous group.
53
     *
54
     * @return string
55
     */
56
    public static function getAnonymousGroup()
57
    {
58
        return static::load('anonymous_group');
59
    }
60
}
61