GridButtonPluginManagerAwareTrait   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getButtonPluginManager() 0 4 1
A setButtonPluginManager() 0 5 1
1
<?php
2
/**
3
 * @company MTE Telecom, Ltd.
4
 * @author Ushkov Nikolai <[email protected]>
5
 * Date: 19.04.16
6
 * Time: 13:10
7
 */
8
9
namespace Nnx\DataGrid\Button;
10
11
/**
12
 * Class GridButtonPluginManagerAwareTrait
13
 * @package Nnx\DataGrid\Button
14
 */
15
trait GridButtonPluginManagerAwareTrait
16
{
17
    /**
18
     * Мэнеджер колонок
19
     * @var GridButtonPluginManager
20
     */
21
    protected $buttonPluginManager;
22
23
    /**
24
     * Возвращает менеджер колонок
25
     * @return GridButtonPluginManager
26
     */
27
    public function getButtonPluginManager()
28
    {
29
        return $this->buttonPluginManager;
30
    }
31
32
    /**
33
     * Устанавливает мэнджер колонок
34
     * @param GridButtonPluginManager $buttonPluginManager
35
     * @return $this
36
     */
37
    public function setButtonPluginManager(GridButtonPluginManager $buttonPluginManager)
38
    {
39
        $this->buttonPluginManager = $buttonPluginManager;
40
        return $this;
41
    }
42
}
0 ignored issues
show
Coding Style introduced by
As per coding style, files should not end with a newline character.

This check marks files that end in a newline character, i.e. an empy line.

Loading history...
43