public function hasContext(string $serviceId, string $context, string $member = null): bool
    {
        $contextIndex = $this->contextServiceId($serviceId, $context, $member);

        return isset(self::$services[$contextIndex]);
    }
public function hasContext(string $serviceId, string $context, string $member = null): bool
    {
        $contextIndex = $this->contextServiceId($serviceId, $context, $member);

        return isset(self::$services[$contextIndex]);
    }
public function hasContext ( string $ serviceId , string $ context , string $ member = null ) : bool { $ contextIndex = $ this -> contextServiceId ( $ serviceId , $ context , $ member ) ; return isset ( self :: $ services [ $ contextIndex ] ) ; }
Check whether a given service has context.

@param string $serviceId The service
@param string $context   The context
class name || function name || variable name
@param string $member    [optional] The context member
method name || property name

@return bool
Check whether a given service has context .