Passed
Push — master ( 10f591...07b5ce )
by
unknown
22:43
created

Ownership::getOwnerGroupId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace MovingImage\Client\VMPro\Entity;
6
7
use JMS\Serializer\Annotation\SerializedName;
8
use JMS\Serializer\Annotation\Type;
9
10
class Ownership
11
{
12
    /**
13
     * @Type("integer")
14
     * @SerializedName("ownerGroupId")
15
     *
16
     * @var int
17
     */
18
    private $ownerGroupId;
19
20
    /**
21
     * @Type("boolean")
22
     *
23
     * @var bool
24
     */
25
    private $visibility;
26
27
    public function getOwnerGroupId(): int
28
    {
29
        return $this->ownerGroupId;
30
    }
31
32
    public function setOwnerGroupId(int $ownerGroupId): Ownership
33
    {
34
        $this->ownerGroupId = $ownerGroupId;
35
36
        return $this;
37
    }
38
39
    public function isVisible(): bool
40
    {
41
        return $this->visibility;
42
    }
43
44
    public function setVisibility(bool $visibility): Ownership
45
    {
46
        $this->visibility = $visibility;
47
48
        return $this;
49
    }
50
51
52
}
53