ObjectNormalizer   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 44
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A setName() 0 4 1
A getMeta() 0 4 1
A setMeta() 0 4 1
1
<?php
2
/*
3
 * This file is part of AppBundle the package.
4
 *
5
 * (c) Ruslan Muriev <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace RonteLtd\JsonApiBundle\Annotation;
12
13
use Doctrine\Common\Annotations\Annotation;
14
use RonteLtd\JsonApiBundle\Serializer\Mapping\ClassAnnotationInterface;
15
16
/**
17
 * Class Normalize
18
 *
19
 * @package RonteLtd\JsonApiBundle\Annotation
20
 * @author Ruslan Muriev <[email protected]>
21
 * @Annotation
22
 * @Annotation\Target("CLASS")
23
 */
24
class ObjectNormalizer implements ClassAnnotationInterface
25
{
26
    /**
27
     * @var string
28
     */
29
    public $name;
30
31
    /**
32
     * @var array
33
     */
34
    public $meta;
35
36
    /**
37
     * @return string
38
     */
39
    public function getName()
40
    {
41
        return $this->name;
42
    }
43
44
    /**
45
     * @param string $name
46
     */
47
    public function setName(string $name)
48
    {
49
        $this->name = $name;
50
    }
51
52
    /**
53
     * @return array
54
     */
55
    public function getMeta()
56
    {
57
        return $this->meta;
58
    }
59
60
    /**
61
     * @param array $meta
62
     */
63
    public function setMeta($meta)
64
    {
65
        $this->meta = $meta;
66
    }
67
}