public function getPriority($listener, $default = null)
    {
        if ($this->storage->contains($listener)) {
            return $this->storage[$listener][0];
        }

        return $default;
    }
public function getPriority($listener, $default = null)
    {
        if ($this->storage->contains($listener)) {
            return $this->storage[$listener][0];
        }

        return $default;
    }
public function getPriority ( $ listener , $ default = null ) { if ( $ this -> storage -> contains ( $ listener ) ) { return $ this -> storage [ $ listener ] [ 0 ] ; } return $ default ; }
Get the priority of the given listener.

@param   \Closure|object $listener The listener.
@param   mixed           $default  The default value to return if the listener doesn't exist.

@return  mixed  The listener priority if it exists, null otherwise.

@since   2.0
Get the priority of the given listener .