Completed
Push — master ( ae2b86...ff0603 )
by Christian
10s
created

SerializerRegistry::getPersonSerializer()   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
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
rs 10
ccs 0
cts 0
cp 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
     * @var PersonSerializerInterface The person serializer
48
     */
49
    private $personSerializer;
50
51
    /**
52
     * {@inheritDoc}
53
     */
54
    public function setStatementSerializer(StatementSerializerInterface $serializer)
55
    {
56
        $this->statementSerializer = $serializer;
57
    }
58
59
    /**
60
     * {@inheritDoc}
61
     */
62
    public function getStatementSerializer()
63
    {
64
        return $this->statementSerializer;
65
    }
66
67
    /**
68
     * {@inheritDoc}
69
     */
70
    public function setStatementResultSerializer(StatementResultSerializerInterface $serializer)
71
    {
72
        $this->statementResultSerializer = $serializer;
73
    }
74
75
    /**
76
     * {@inheritDoc}
77
     */
78
    public function getStatementResultSerializer()
79
    {
80
        return $this->statementResultSerializer;
81
    }
82
83
    /**
84
     * {@inheritDoc}
85
     */
86
    public function setActorSerializer(ActorSerializerInterface $serializer)
87
    {
88
        $this->actorSerializer = $serializer;
89
    }
90
91
    /**
92
     * {@inheritDoc}
93
     */
94
    public function getActorSerializer()
95
    {
96
        return $this->actorSerializer;
97
    }
98
99
    /**
100
     * {@inheritDoc}
101
     */
102
    public function setDocumentDataSerializer(DocumentDataSerializerInterface $serializer)
103
    {
104
        $this->documentDataSerializer = $serializer;
105
    }
106
107
    /**
108
     * {@inheritDoc}
109
     */
110
    public function getDocumentDataSerializer()
111
    {
112
        return $this->documentDataSerializer;
113
    }
114
115
    /**
116
     * {@inheritdoc}
117
     */
118
    public function setActivitySerializer(ActivitySerializerInterface $serializer)
119
    {
120
        $this->activitySerializer = $serializer;
121
    }
122
123
    /**
124
     * {@inheritdoc}
125
     */
126
    public function getActivitySerializer()
127
    {
128
        return $this->activitySerializer;
129
    }
130
131
    /**
132
     * {@inheritdoc}
133
     */
134
    public function setPersonSerializer(PersonSerializerInterface $serializer)
135
    {
136
        $this->personSerializer = $serializer;
137
    }
138
139
    /**
140
     * {@inheritdoc}
141
     */
142
    public function getPersonSerializer()
143
    {
144
        return $this->personSerializer;
145
    }
146
}
147