public function matches(array $values, $strict = false)
    {
        if (empty($values)) {
            return false;
        }

        $claims = $this->getClaims();

        foreach ($values as $key => $value) {
            if (! $claims->has($key) || ! $claims->get($key)->matches($value, $strict)) {
                return false;
            }
        }

        return true;
    }
public function matches(array $values, $strict = false)
    {
        if (empty($values)) {
            return false;
        }

        $claims = $this->getClaims();

        foreach ($values as $key => $value) {
            if (! $claims->has($key) || ! $claims->get($key)->matches($value, $strict)) {
                return false;
            }
        }

        return true;
    }
public function matches ( array $ values , $ strict = false ) { if ( empty ( $ values ) ) { return false ; } $ claims = $ this -> getClaims ( ) ; foreach ( $ values as $ key => $ value ) { if ( ! $ claims -> has ( $ key ) || ! $ claims -> get ( $ key ) -> matches ( $ value , $ strict ) ) { return false ; } } return true ; }
Checks if a payload matches some expected values.

@param  array  $values
@param  bool  $strict

@return bool
Checks if a payload matches some expected values .