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

UiGroupingTrait::setPriority()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 12
Code Lines 6

Duplication

Lines 12
Ratio 100 %

Importance

Changes 0
Metric Value
dl 12
loc 12
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 6
nc 2
nop 1
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