Completed
Pull Request — master (#31)
by
unknown
02:06
created

SerializerRegistry::getActivitySerializer()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 0
cts 0
cp 0
cc 1
eloc 2
nc 1
nop 0
crap 2
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;
13
14
/**
15
 * Registry containing all the serializers.
16
 *
17
 * @author Christian Flothmann <[email protected]>
18
 */
19
final class SerializerRegistry implements SerializerRegistryInterface
20
{
21
    /**
22
     * @var StatementSerializerInterface The statement serializer
23
     */
24
    private $statementSerializer;
25
26
    /**
27
     * @var StatementResultSerializerInterface The statement result serializer
28
     */
29
    private $statementResultSerializer;
30
31
    /**
32
     * @var ActorSerializerInterface The actor serializer
33
     */
34
    private $actorSerializer;
35
36
    /**
37
     * @var DocumentDataSerializerInterface The document data serializer
38
     */
39
    private $documentDataSerializer;
40
41
    /**
42
     * @var ActivitySerializerInterface The activity serializer
43
     */
44
    private $activitySerializer;
45
46
    /**
47
     * {@inheritDoc}
48
     */
49
    public function setStatementSerializer(StatementSerializerInterface $serializer)
50
    {
51
        $this->statementSerializer = $serializer;
52
    }
53
54
    /**
55
     * {@inheritDoc}
56
     */
57
    public function getStatementSerializer()
58
    {
59
        return $this->statementSerializer;
60
    }
61
62
    /**
63
     * {@inheritDoc}
64
     */
65
    public function setStatementResultSerializer(StatementResultSerializerInterface $serializer)
66
    {
67
        $this->statementResultSerializer = $serializer;
68
    }
69
70
    /**
71
     * {@inheritDoc}
72
     */
73
    public function getStatementResultSerializer()
74
    {
75
        return $this->statementResultSerializer;
76
    }
77
78
    /**
79
     * {@inheritDoc}
80
     */
81
    public function setActorSerializer(ActorSerializerInterface $serializer)
82
    {
83
        $this->actorSerializer = $serializer;
84
    }
85
86
    /**
87
     * {@inheritDoc}
88
     */
89
    public function getActorSerializer()
90
    {
91
        return $this->actorSerializer;
92
    }
93
94
    /**
95
     * {@inheritDoc}
96
     */
97
    public function setDocumentDataSerializer(DocumentDataSerializerInterface $serializer)
98
    {
99
        $this->documentDataSerializer = $serializer;
100
    }
101
102
    /**
103
     * {@inheritDoc}
104
     */
105
    public function getDocumentDataSerializer()
106
    {
107
        return $this->documentDataSerializer;
108
    }
109
110
    /**
111
     * {@inheritdoc}
112
     */
113
    public function setActivitySerializer(ActivitySerializerInterface $serializer)
114
    {
115
        $this->activitySerializer = $serializer;
116
    }
117
118
    /**
119
     * {@inheritdoc}
120
     */
121
    public function getActivitySerializer()
122
    {
123
        return $this->activitySerializer;
124
    }
125
}
126