Completed
Push — master ( 776a32...6c75fc )
by Guillermo A.
07:11
created

GroupAndOwnerAwareTrait::getOwnerId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Guillermoandrae\Highrise\Models;
4
5
trait GroupAndOwnerAwareTrait
6
{
7
    /**
8
     * The account owner's ID.
9
     *
10
     * @var int
11
     */
12
    protected $ownerId;
13
14
    /**
15
     * The group ID.
16
     *
17
     * @var integer
18
     */
19
    protected $groupId;
20
21
    /**
22
     * Returns the groupId.
23
     *
24
     * @return int
25
     */
26
    final public function getGroupId(): int
27
    {
28
        return $this->groupId;
29
    }
30
31
    /**
32
     * Returns the ownerId.
33
     *
34
     * @return int
35
     */
36
    final public function getOwnerId(): int
37
    {
38
        return $this->ownerId;
39
    }
40
}
41