private function guessType(array $properties)
    {
        $types = ['url', 'route', 'action'];

        foreach ($types as $type) {
            if (array_key_exists($type, $properties)) return $type;
        }

        return null;
    }
private function guessType(array $properties)
    {
        $types = ['url', 'route', 'action'];

        foreach ($types as $type) {
            if (array_key_exists($type, $properties)) return $type;
        }

        return null;
    }
private function guessType ( array $ properties ) { $ types = [ 'url' , 'route' , 'action' ] ; foreach ( $ types as $ type ) { if ( array_key_exists ( $ type , $ properties ) ) return $ type ; } return null ; }
Guess the menu item type.

@param  array  $properties

@return string|null
Guess the menu item type .