Completed
Push — master ( fcba14...b39a1f )
by Andrii
09:07
created

Representation::isVisible()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * Advanced Grid for Yii2.
4
 *
5
 * @link      https://github.com/hiqdev/yii2-higrid
6
 * @package   yii2-higrid
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2015-2017, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hiqdev\higrid\representations;
12
13
use yii\base\BaseObject;
14
15
/**
16
 * Class Representation.
17
 *
18
 * @author Dmytro Naumenko <[email protected]>
19
 */
20
class Representation extends BaseObject implements RepresentationInterface
21
{
22
    /** @var string */
23
    public $label;
24
25
    /** @var array */
26
    public $columns = [];
27
28
    /** @var bool */
29
    public $visible = true;
30
31
    /** {@inheritdoc} */
32
    public function getColumns()
33
    {
34
        return $this->columns;
35
    }
36
37
    /** @return {@inheritdoc} */
0 ignored issues
show
Documentation introduced by
The doc-type {@inheritdoc} could not be parsed: Unknown type name "{@inheritdoc}" at position 0. (view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
38
    public function getLabel()
39
    {
40
        return $this->label;
41
    }
42
43
    /** @return {@inheritdoc} */
0 ignored issues
show
Documentation introduced by
The doc-type {@inheritdoc} could not be parsed: Unknown type name "{@inheritdoc}" at position 0. (view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
44
    public function isVisible(): bool
45
    {
46
        return $this->visible;
47
    }
48
}
49