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

DashboardBlockRegistry::getRegistredBlocks()   A

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 0
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