Exemple #1
0
 public function getLevel()
 {
     return $this->parent ? $this->parent->getLevel() + 1 : 0;
 }