1 | <?php |
||
9 | abstract class AccessRights extends Node |
||
10 | { |
||
11 | /** |
||
12 | * The mode |
||
13 | * |
||
14 | * @var int |
||
15 | **/ |
||
16 | private $mode; |
||
17 | |||
18 | /** |
||
19 | * Constructor |
||
20 | * |
||
21 | * @param string $name |
||
22 | * @param int $mode mode in octal (0XXX) |
||
23 | * @return void |
||
|
|||
24 | **/ |
||
25 | public function __construct($name, $mode = null) |
||
31 | |||
32 | /** |
||
33 | * Get the mode (as an int) |
||
34 | * |
||
35 | * @return int |
||
36 | */ |
||
37 | public function getMode() |
||
41 | |||
42 | /** |
||
43 | * Set the mode (as an int) |
||
44 | * |
||
45 | * @param int $mode |
||
46 | * @return AccessRights |
||
47 | */ |
||
48 | public function setMode($mode) |
||
54 | |||
55 | /** |
||
56 | * Has a mode been set? |
||
57 | * |
||
58 | * @return bool |
||
59 | **/ |
||
60 | public function hasMode() |
||
64 | } |
||
65 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.