Attribute   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 23
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A setName() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of ApiRestBundle the package.
5
 *
6
 * (c) Alexey Astafev <[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 RonteLtd\JsonApiBundle\Annotation;
13
14
use Doctrine\Common\Annotations\Annotation;
15
16
/**
17
 * JsonApi
18
 *
19
 * @author Alexey Astafev <[email protected]>
20
 * @Annotation
21
 * @Annotation\Target("PROPERTY")
22
 */
23
class Attribute
24
{
25
    /**
26
     * @var string
27
     */
28
    public $name;
29
30
    /**
31
     * @return string
32
     */
33
    public function getName()
34
    {
35
        return $this->name;
36
    }
37
38
    /**
39
     * @param string $name
40
     */
41
    public function setName(string $name)
42
    {
43
        $this->name = $name;
44
    }
45
}