Hoa central
Permission.php
Go to the documentation of this file.
1 <?php
2 
37 namespace Hoa\Acl;
38 
48 {
54  protected $permissionId = null;
55 
61  protected $permissionLabel = null;
62 
63 
64 
72  public function __construct($id, $label = null)
73  {
74  $this->setId($id);
75  $this->setLabel($label);
76 
77  return;
78  }
79 
86  public function setId($id)
87  {
88  $old = $this->permissionId;
89  $this->permissionId = $id;
90 
91  return $old;
92  }
93 
100  public function setLabel($label)
101  {
102  $old = $this->permissionLabel;
103  $this->permissionLabel = $label;
104 
105  return $old;
106  }
107 
113  public function getId()
114  {
115  return $this->permissionId;
116  }
117 
123  public function getLabel()
124  {
125  return $this->permissionLabel;
126  }
127 }
Definition: Acl.php:37
__construct($id, $label=null)
Definition: Permission.php:72