/
Organization.class.php
91 lines (80 loc) · 1.35 KB
/
Organization.class.php
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
81
82
83
84
85
86
87
88
89
90
91
<?php
namespace Pipe;
class Organization {
const VISIBLE_TO_COMPANY = 3;
private $name = '';
private $pipeId = 0;
private $pipeRelId = 0;
/**
* @return int
*/
public function getPipeRelId() {
return $this->pipeRelId;
}
/**
* @param int $pipeRelId
* @return Organization
*/
public function setPipeRelId($pipeRelId) {
$this->pipeRelId = (int)$pipeRelId;
return $this;
}
private $id = 0;
/**
* @return int
*/
public function getId() {
return $this->id;
}
/**
* @param int $id
* @return Organization
*/
public function setId($id) {
$this->id = (int)$id;
return $this;
}
/**
* @return int
*/
public function getPipeId() {
return $this->pipeId;
}
/**
* @param int $pipeId
* @return Organization
*/
public function setPipeId($pipeId) {
$this->pipeId = (int)$pipeId;
return $this;
}
private $daughters = array();
/**
* @return string
*/
public function getName() {
return $this->name;
}
/**
* @param string $name
* @return Organization
*/
public function setName($name) {
$this->name = (string)$name;
return $this;
}
/**
* @return Organization[]
*/
public function getDaughters() {
return $this->daughters;
}
/**
* @param array $daughter
* @return Organization
*/
public function addDaughter(Organization $daughter) {
$this->daughters[] = $daughter;
return $this;
}
}