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

GroupAndOwnerAwareTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 34
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getOwnerId() 0 3 1
A getGroupId() 0 3 1
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