RoleInterface.php 1.37 KB
Newer Older
Bertrand Gauthier's avatar
Bertrand Gauthier committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php

namespace UnicaenAuth\Entity\Db;

use BjyAuthorize\Acl\HierarchicalRoleInterface;
use ZfcUser\Entity\UserInterface;

interface RoleInterface extends HierarchicalRoleInterface
{
    /**
     * @param int $id
     * @return self
     */
    public function setId($id);

    /**
     * @return int
     */
    public function getId();

    /**
     * @return string
     */
    public function getRoleId();

    /**
     * @param string $roleId
     * @return self
     */
    public function setRoleId($roleId);

    /**
     * @return boolean
     */
    public function getIsDefault();

    /**
     * @param boolean $isDefault
     * @return self
     */
    public function setIsDefault($isDefault);

    /**
     * @return RoleInterface|null
     */
    public function getParent();

    /**
     * @param RoleInterface|null $parent
     * @return self
     */
    public function setParent(RoleInterface $parent = null);

    /**
     * @return string
     */
    public function getLdapFilter();

    /**
     * @param string $ldapFilter
     * @return self
     */
    public function setLdapFilter($ldapFilter);

    /**
     * @return UserInterface[]
     */
    public function getUsers();

    /**
     * @param UserInterface $user
     * @return self
     */
    public function addUser(UserInterface $user);

    /**
     * @return string
     */
    public function __toString();
}