Completed
Push — wip-platform ( 03cba6...2999ab )
by
unknown
05:53 queued 02:49
created

DashboardBlockRegistry   A

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