DashboardBlockRegistry   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A registerBlock() 0 4 1
A getRegistredBlocks() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the Blast Project package.
5
 *
6
 * Copyright (C) 2015-2017 Libre Informatique
7
 *
8
 * This file is licenced under the GNU LGPL v3.
9
 * For the full copyright and license information, please view the LICENSE.md
10
 * file that was distributed with this source code.
11
 */
12
13
namespace Blast\CoreBundle\Dashboard;
14
15
class DashboardBlockRegistry
16
{
17
    /**
18
     * @var array
19
     */
20
    private $blocks;
21
22
    public function __construct()
23
    {
24
        $this->blocks = [];
25
    }
26
27
    public function registerBlock($block)
28
    {
29
        $this->blocks[] = $block;
30
    }
31
32
    public function getRegistredBlocks()
33
    {
34
        return $this->blocks;
35
    }
36
}
37