Completed
Push — 2.x-dev-kit ( 8d77e1 )
by
unknown
28:22 queued 25:50
created

Metadata   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getInformations() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the Sonata project.
5
 *
6
 * (c) Thomas Rabaix <[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 Sonata\NotificationBundle\Consumer;
13
14
class Metadata
15
{
16
    /**
17
     * @var array
18
     */
19
    protected $informations;
20
21
    /**
22
     * @param array $informations
23
     */
24
    public function __construct(array $informations = array())
25
    {
26
        $this->informations = $informations;
27
    }
28
29
    /**
30
     * @return array
31
     */
32
    public function getInformations()
33
    {
34
        return $this->informations;
35
    }
36
}
37