original_string: private function insertMenuObject($slug, $callback, $object)
      {
          $object->slug = $this->snakeName($slug);
          $object->menu = $this->getMenu();
  
          call_user_func($callback, $object);
  
          if (! $object->insert) {
              $this->links[] = $object;
          }
      }
code: private function insertMenuObject($slug, $callback, $object)
      {
          $object->slug = $this->snakeName($slug);
          $object->menu = $this->getMenu();
  
          call_user_func($callback, $object);
  
          if (! $object->insert) {
              $this->links[] = $object;
          }
      }
code_tokens: private function insertMenuObject ( $ slug , $ callback , $ object ) { $ object -> slug = $ this -> snakeName ( $ slug ) ; $ object -> menu = $ this -> getMenu ( ) ; call_user_func ( $ callback , $ object ) ; if ( ! $ object -> insert ) { $ this -> links [ ] = $ object ; } }
docstring: Insert an object into the menu
  
  @param $slug
  @param $callback
  @param $object
docstring_tokens: Insert an object into the menu