| Total Complexity | 14 |
| Total Lines | 85 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class Node |
||
| 6 | { |
||
| 7 | protected $id; |
||
| 8 | protected $user; |
||
| 9 | protected $content; |
||
| 10 | protected $createdAt; |
||
| 11 | protected $parentId; |
||
| 12 | protected $subNodeList; |
||
| 13 | protected $mainNode; |
||
| 14 | |||
| 15 | public function setContent($content) |
||
| 16 | { |
||
| 17 | $this->content = $content; |
||
| 18 | return $this; |
||
| 19 | } |
||
| 20 | |||
| 21 | public function getContent() |
||
| 22 | { |
||
| 23 | return $this->content; |
||
| 24 | } |
||
| 25 | |||
| 26 | public function setCreatedAt($createdAt) |
||
| 27 | { |
||
| 28 | $this->createdAt = $createdAt; |
||
| 29 | return $this; |
||
| 30 | } |
||
| 31 | |||
| 32 | public function getCreatedAt() |
||
| 33 | { |
||
| 34 | return $this->createdAt; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function setId($id) |
||
| 38 | { |
||
| 39 | $this->id = $id; |
||
| 40 | return $this; |
||
| 41 | } |
||
| 42 | |||
| 43 | public function getId() |
||
| 46 | } |
||
| 47 | |||
| 48 | public function setParentId($parentId) |
||
| 49 | { |
||
| 50 | $this->parentId = $parentId; |
||
| 51 | return $this; |
||
| 52 | } |
||
| 53 | |||
| 54 | public function getParentId() |
||
| 55 | { |
||
| 56 | return $this->parentId; |
||
| 57 | } |
||
| 58 | |||
| 59 | public function setUser($user) |
||
| 60 | { |
||
| 61 | $this->user = $user; |
||
| 62 | return $this; |
||
| 63 | } |
||
| 64 | |||
| 65 | public function getUser() |
||
| 66 | { |
||
| 67 | return $this->user; |
||
| 68 | } |
||
| 69 | |||
| 70 | public function setMainNode($mainNode) |
||
| 74 | } |
||
| 75 | |||
| 76 | public function getMainNode() |
||
| 77 | { |
||
| 78 | return $this->mainNode; |
||
| 79 | } |
||
| 80 | |||
| 81 | public function setSubNodeList($subNodeList) |
||
| 85 | } |
||
| 86 | |||
| 87 | public function getSubNodeList() |
||
| 90 | } |
||
| 91 | } |
||
| 92 |