protected function getNodeName($data)
    {
        if (is_object($data)) {
            $nodeName = preg_replace('/.*\\\/', '', get_class($data));
            return preg_replace('/\W/', '', $nodeName);
        } elseif (is_array($data)) {
            return 'array';
        }
        return $this->defaultNodeName;
    }
protected function getNodeName($data)
    {
        if (is_object($data)) {
            $nodeName = preg_replace('/.*\\\/', '', get_class($data));
            return preg_replace('/\W/', '', $nodeName);
        } elseif (is_array($data)) {
            return 'array';
        }
        return $this->defaultNodeName;
    }
protected function getNodeName ( $ data ) { if ( is_object ( $ data ) ) { $ nodeName = preg_replace ( '/.*\\\/' , '' , get_class ( $ data ) ) ; return preg_replace ( '/\W/' , '' , $ nodeName ) ; } elseif ( is_array ( $ data ) ) { return 'array' ; } return $ this -> defaultNodeName ; }
Try to guess the node name
@param mixed $data Data to try to find the name of
@return mixed|string
Try to guess the node name