Meta   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
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
15
/**
16
 * Class Meta
17
 *
18
 * @package RonteLtd\JsonApiBundle\Annotation
19
 * @author Ruslan Muriev <[email protected]>
20
 * @Annotation
21
 * @Annotation\Target("PROPERTY", "METHOD")
22
 */
23
class Meta
24
{
25
    /**
26
     * JsonApi metadata
27
     *
28
     * @var array
29
     */
30
    public $meta = [];
31
32
    /**
33
     * @return array
34
     */
35
    public function getMeta()
36
    {
37
        return $this->meta;
38
    }
39
40
    /**
41
     * @param array $meta
42
     */
43
    public function setMeta(array $meta)
44
    {
45
        $this->meta = $meta;
46
    }
47
}