/**
  * Notify that a child state has changed
  * @param \Bugzorcist\VarDump\Ncurses\VarDump\NcursesVarDumpTypeAbstract $child changed child
  */
 public function notifyChildModification(NcursesVarDumpTypeAbstract $child)
 {
     $this->childrenHeightCache = null;
     $this->childrenWidthCache = null;
     // notify parents
     if ($this->parent) {
         $this->parent->notifyChildModification($this);
     }
 }
 /**
  * {@inheritdoc}
  */
 public function highlightAsReferenced($highlight)
 {
     $this->clearCaches();
     $this->wrapped->highlightAsReferenced($highlight);
     parent::highlightAsReferenced($highlight);
 }
Esempio n. 3
0
 /**
  * Expands a var and all of its children
  * @param \Bugzorcist\VarDump\Ncurses\VarDump\NcursesVarDumpTypeAbstract $var var to expand
  */
 protected function expandAll(NcursesVarDumpTypeAbstract $var)
 {
     $var->expand();
     $children = $var->getChildren();
     foreach ($children as $child) {
         $this->expandAll($child);
     }
 }