ButtonInterface
last analyzed

Size/Duplication

Total Lines 120
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 120
c 0
b 0
f 0

18 Methods

Rating   Name   Duplication   Size   Complexity  
getName() 0 1 ?
setName() 0 1 ?
getUrl() 0 1 ?
setUrl() 0 1 ?
getTitle() 0 1 ?
setTitle() 0 1 ?
getJs() 0 1 ?
setJs() 0 1 ?
getLibJs() 0 1 ?
setLibJs() 0 1 ?
getOptions() 0 1 ?
setOptions() 0 1 ?
getAttribute() 0 1 ?
getAttributes() 0 1 ?
setAttribute() 0 1 ?
setAttributes() 0 1 ?
getOrder() 0 1 ?
setOrder() 0 1 ?
1
<?php
2
/**
3
 * @company MTE Telecom, Ltd.
4
 * @author Ushkov Nikolai <[email protected]>
5
 * Date: 18.04.16
6
 * Time: 17:23
7
 */
8
9
namespace Nnx\DataGrid\Button;
10
11
/**
12
 * Interface ButtonInterface
13
 * @package Nnx\DataGrid\Button
14
 */
15
interface ButtonInterface
16
{
17
    /**
18
     * Получить Наименование кнопки
19
     * @return string
20
     */
21
    public function getName();
22
23
    /**
24
     * Установить Наименование кнопки
25
     * @param string $name
26
     * @return $this
27
     */
28
    public function setName($name);
29
30
    /**
31
     * Получить url кнопки
32
     * @return string
33
     */
34
    public function getUrl();
35
36
    /**
37
     * Установить url кнопки
38
     * @param string $url
39
     * @return $this
40
     */
41
    public function setUrl($url);
42
43
    /**
44
     * Получить Заголовок кнопки
45
     * @return string
46
     */
47
    public function getTitle();
48
49
    /**
50
     * Установить Заголовок кнопки
51
     * @param string $title
52
     * @return $this
53
     */
54
    public function setTitle($title);
55
56
    /**
57
     * Получить JS код кнопки
58
     * @return string
59
     */
60
    public function getJs();
61
62
    /**
63
     * Установить JS код кнопки
64
     * @param string $js
65
     * @return $this
66
     */
67
    public function setJs($js);
0 ignored issues
show
Comprehensibility introduced by
Avoid variables with short names like $js. Configured minimum length is 3.

Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.

Loading history...
68
69
    /**
70
     * Получить JS библитеки кнопки
71
     * @return array
72
     */
73
    public function getLibJs();
74
75
    /**
76
     * Установить JS библитеки кнопки
77
     * @param array $libJs
78
     * @return $this
79
     */
80
    public function setLibJs($libJs);
81
82
    /**
83
     * Получить Опции кнопки
84
     * @return array|\Traversable
85
     */
86
    public function getOptions();
87
88
    /**
89
     * Установить Опции кнопки
90
     * @param array|\Traversable $options
91
     * @return $this
92
     */
93
    public function setOptions($options);
94
95
    /**
96
     * Возвращает атрибут кнопки
97
     * @param $name
98
     * @return mixed|null
99
     */
100
    public function getAttribute($name);
101
102
    /**
103
     * Получить Атрибуты кнопки
104
     * @return array|\Traversable
105
     */
106
    public function getAttributes();
107
108
    /**
109
     * Установить Аттрибут кнопки
110
     * @param string $name
111
     * @param mixed $value
112
     * @return $this
113
     */
114
    public function setAttribute($name, $value);
115
    /**
116
     * Установить Атрибуты кнопки
117
     * @param array|\Traversable $attributes
118
     * @return $this
119
     */
120
    public function setAttributes($attributes);
121
122
    /**
123
     * Получить Значение сортировки
124
     * @return int
125
     */
126
    public function getOrder();
127
128
    /**
129
     * Установить Значение сортировки
130
     * @param int $order
131
     * @return $this
132
     */
133
    public function setOrder($order);
134
}
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...
135