SerializerRegistry::setStatementResultSerializer()   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
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
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
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
     * {@inheritDoc}
43
     */
44
    public function setStatementSerializer(StatementSerializerInterface $serializer)
45
    {
46
        $this->statementSerializer = $serializer;
47
    }
48
49
    /**
50
     * {@inheritDoc}
51
     */
52
    public function getStatementSerializer()
53
    {
54
        return $this->statementSerializer;
55
    }
56
57
    /**
58
     * {@inheritDoc}
59
     */
60
    public function setStatementResultSerializer(StatementResultSerializerInterface $serializer)
61
    {
62
        $this->statementResultSerializer = $serializer;
63
    }
64
65
    /**
66
     * {@inheritDoc}
67
     */
68
    public function getStatementResultSerializer()
69
    {
70
        return $this->statementResultSerializer;
71
    }
72
73
    /**
74
     * {@inheritDoc}
75
     */
76
    public function setActorSerializer(ActorSerializerInterface $serializer)
77
    {
78
        $this->actorSerializer = $serializer;
79
    }
80
81
    /**
82
     * {@inheritDoc}
83
     */
84
    public function getActorSerializer()
85
    {
86
        return $this->actorSerializer;
87
    }
88
89
    /**
90
     * {@inheritDoc}
91
     */
92
    public function setDocumentDataSerializer(DocumentDataSerializerInterface $serializer)
93
    {
94
        $this->documentDataSerializer = $serializer;
95
    }
96
97
    /**
98
     * {@inheritDoc}
99
     */
100
    public function getDocumentDataSerializer()
101
    {
102
        return $this->documentDataSerializer;
103
    }
104
}
105