callback = $callback; return $this; } /** @brief Set the callback back to this class. @since 2015-12-26 20:13:15 **/ public function callback_this( $method ) { // Retrieve the class object that called this. $trace = debug_backtrace(); array_shift( $trace ); $trace = reset( $trace ); $class = $trace[ 'object' ]; return $this->callback( [ $class, $method ] ); } /** @brief Set the capability. @since 2015-12-26 20:13:50 **/ public function capability( $capability ) { $this->capability = $capability; return $this; } /** @brief Set the menu slug. @since 2015-12-26 20:40:39 **/ public function menu_slug( $menu_slug ) { $this->menu_slug = $menu_slug; return $this; } /** @brief Set the menu title. @since 2015-12-26 20:13:50 **/ public function menu_title( $menu_title ) { $this->menu_title = $menu_title; return $this; } /** @brief Set the page title. @since 2015-12-26 20:13:50 **/ public function page_title( $page_title ) { $this->page_title = $page_title; return $this; } }