Links::setLinks()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 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
15
/**
16
 * Class Links
17
 *
18
 * @package RonteLtd\JsonApiBundle\Annotation
19
 * @author Ruslan Muriev <[email protected]>
20
 * @Annotation
21
 * @Annotation\Target("PROPERTY", "METHOD")
22
 */
23
class Links
24
{
25
    /**
26
     * JsonApi links
27
     *
28
     * @var array
29
     */
30
    public $links = [];
31
32
    /**
33
     * @return array
34
     */
35
    public function getLinks()
36
    {
37
        return $this->links;
38
    }
39
40
    /**
41
     * @param array $links
42
     */
43
    public function setLinks(array $links)
44
    {
45
        $this->links = $links;
46
    }
47
}