-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOrganizationModel.php
More file actions
78 lines (66 loc) · 1.74 KB
/
OrganizationModel.php
File metadata and controls
78 lines (66 loc) · 1.74 KB
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
<?php // vim:ts=3:sts=3:sw=3:et:
/**
* Organization model
*
* PHP Version 5
*
* @category PHP
* @package MindFrame2
* @author Bryan C. Geraghty <bryan@ravensight.org>
* @copyright 2005-2011 Bryan C. Geraghty
* @license http://www.gnu.org/licenses/lgpl-3.0.txt GNU LGPL
* @link https://github.com/archwisp/MindFrame2
*/
/**
* Organization model
*
* @category PHP
* @package MindFrame2
* @author Bryan C. Geraghty <bryan@ravensight.org>
* @license http://www.gnu.org/licenses/lgpl-3.0.txt GNU LGPL
* @link https://github.com/archwisp/MindFrame2
*/
class MindFrame2_OrganizationModel
implements MindFrame2_Dbms_Record_Interface,
MindFrame2_Authorization_OrganizationInterface
{
private $_label;
private $_organization_id;
private $_parent_organization;
public function __construct($organization_id, $label)
{
MindFrame2_Core::assertArgumentIsNotBlank($label, 1, 'label');
$this->_organization_id = $organization_id;
$this->_label = $label;
}
public function getOrganizationId()
{
return $this->_organization_id;
}
public function getLabel()
{
return $this->_label;
}
public function getParentOrganization()
{
return $this->_parent_organization;
}
public function getPrimaryKey()
{
return $this->getOrganizationId();
}
public function setLabel($label)
{
MindFrame2_Core::assertArgumentIsNotBlank($label, 1, 'label');
$this->_label = $label;
}
public function setParentOrganization(
MindFrame2_Authorization_OrganizationInterface $organization)
{
$this->_parent_organization = $organization;
}
public function setPrimaryKey($value)
{
$this->_organization_id = $value;
}
}