protected function getTargetNode()
    {
        if (null === $target = $this->getTarget()) {
            $segments = explode('/', $this->getPath());
            $target = '';

            while (count($segments) > 0) {
                $segment = array_pop($segments);
                $target = $segment.'/'.$target;

                if (!is_numeric($segment)) {
                    break;
                }
            }

            return rtrim($target, '/');
        }

        return $target;
    }
protected function getTargetNode()
    {
        if (null === $target = $this->getTarget()) {
            $segments = explode('/', $this->getPath());
            $target = '';

            while (count($segments) > 0) {
                $segment = array_pop($segments);
                $target = $segment.'/'.$target;

                if (!is_numeric($segment)) {
                    break;
                }
            }

            return rtrim($target, '/');
        }

        return $target;
    }
protected function getTargetNode ( ) { if ( null === $ target = $ this -> getTarget ( ) ) { $ segments = explode ( '/' , $ this -> getPath ( ) ) ; $ target = '' ; while ( count ( $ segments ) > 0 ) { $ segment = array_pop ( $ segments ) ; $ target = $ segment . '/' . $ target ; if ( ! is_numeric ( $ segment ) ) { break ; } } return rtrim ( $ target , '/' ) ; } return $ target ; }
Returns a printable representation of the exception
target. If no target has been explicitly passed in,
the last non-array segments of the path are returned.

@return string
Returns a printable representation of the exception target . If no target has been explicitly passed in the last non - array segments of the path are returned .