Passed
Push — master ( e985e7...9cead0 )
by Chauncey
03:51
created

UiGroupingTrait::priority()   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
namespace Charcoal\Ui;
4
5
/**
6
 * Provides an implementation of {@see \Charcoal\Ui\UiGroupingInterface}.
7
 */
8
trait UiGroupingTrait
9
{
10
    /**
11
     * The group's identifier.
12
     *
13
     * @var string
14
     */
15
    private $ident;
16
17
    /**
18
     * Set the identifier of the group.
19
     *
20
     * @param  string $ident The group identifier.
21
     * @return self
22
     */
23
    public function setIdent($ident)
24
    {
25
        $this->ident = $ident;
26
27
        return $this;
28
    }
29
30
    /**
31
     * Retrieve the idenfitier of the group.
32
     *
33
     * @return string
34
     */
35
    public function ident()
36
    {
37
        return $this->ident;
38
    }
39
}
40