Passed
Push — devel-3.0 ( 2fc71e...3e43d6 )
by Rubén
03:39
created

AccountPrivate::isPrivateUser()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * sysPass
4
 *
5
 * @author    nuxsmin
6
 * @link      https://syspass.org
7
 * @copyright 2012-2018, Rubén Domínguez nuxsmin@$syspass.org
8
 *
9
 * This file is part of sysPass.
10
 *
11
 * sysPass is free software: you can redistribute it and/or modify
12
 * it under the terms of the GNU General Public License as published by
13
 * the Free Software Foundation, either version 3 of the License, or
14
 * (at your option) any later version.
15
 *
16
 * sysPass is distributed in the hope that it will be useful,
17
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19
 * GNU General Public License for more details.
20
 *
21
 * You should have received a copy of the GNU General Public License
22
 *  along with sysPass.  If not, see <http://www.gnu.org/licenses/>.
23
 */
24
25
namespace SP\DataModel;
26
27
/**
28
 * Class AccountPrivate
29
 *
30
 * @package SP\DataModel
31
 */
32
class AccountPrivate
33
{
34
    /**
35
     * @var bool
36
     */
37
    private $privateUser = false;
38
    /**
39
     * @var bool
40
     */
41
    private $privateGroup = false;
42
43
    /**
44
     * @return bool
45
     */
46
    public function isPrivateUser(): bool
47
    {
48
        return $this->privateUser;
49
    }
50
51
    /**
52
     * @param bool $privateUser
53
     */
54
    public function setPrivateUser(bool $privateUser)
55
    {
56
        $this->privateUser = $privateUser;
57
    }
58
59
    /**
60
     * @return bool
61
     */
62
    public function isPrivateGroup(): bool
63
    {
64
        return $this->privateGroup;
65
    }
66
67
    /**
68
     * @param bool $privateGroup
69
     */
70
    public function setPrivateGroup(bool $privateGroup)
71
    {
72
        $this->privateGroup = $privateGroup;
73
    }
74
}