mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
git-subtree-dir: community_server git-subtree-mainline: ff11f6efe35bba180260fe84077bcd94298895c1 git-subtree-split: b6544b9e69fb85d4da100934675323c3e8c8ef67
32 lines
673 B
PHP
32 lines
673 B
PHP
<?php
|
|
|
|
/*
|
|
* To change this license header, choose License Headers in Project Properties.
|
|
* To change this template file, choose Tools | Templates
|
|
* and open the template in the editor.
|
|
*/
|
|
|
|
namespace Model\Navigation;
|
|
|
|
class NaviEntryBase {
|
|
protected $title = "";
|
|
protected $childs = [];
|
|
protected $isChild = false;
|
|
|
|
public function setTitle($title) {
|
|
$this->title = $title;
|
|
return $this;
|
|
}
|
|
|
|
public function add($child) {
|
|
$child->isChild = true;
|
|
array_push($this->childs, $child);
|
|
return $this;
|
|
}
|
|
|
|
protected function hasChilds() {
|
|
return count($this->childs) > 0;
|
|
}
|
|
|
|
}
|