public function isContextMatching(ContextualValueInterface $value, array $context)
    {
        if (!$value->getContext()) {
            return true;
        }
        $value::checkContext($context);
        foreach ($this->getContextMask() as $key) {
            $contextKey = array_key_exists($key, $context) ? $context[$key] : null;
            if ($contextKey !== $value->getContextValue($key)) {
                return false;
            }
        }

        return true;
    }
public function isContextMatching(ContextualValueInterface $value, array $context)
    {
        if (!$value->getContext()) {
            return true;
        }
        $value::checkContext($context);
        foreach ($this->getContextMask() as $key) {
            $contextKey = array_key_exists($key, $context) ? $context[$key] : null;
            if ($contextKey !== $value->getContextValue($key)) {
                return false;
            }
        }

        return true;
    }
public function isContextMatching ( ContextualValueInterface $ value , array $ context ) { if ( ! $ value -> getContext ( ) ) { return true ; } $ value :: checkContext ( $ context ) ; foreach ( $ this -> getContextMask ( ) as $ key ) { $ contextKey = array_key_exists ( $ key , $ context ) ? $ context [ $ key ] : null ; if ( $ contextKey !== $ value -> getContextValue ( $ key ) ) { return false ; } } return true ; }
Warning, the context array must contain all context axis

@param ContextualValueInterface $value
@param array                    $context

@throws ContextException

@return bool
Warning the context array must contain all context axis