public function setRequestPatterns(array $requestPatterns)
    {
        foreach ($requestPatterns as $requestPattern) {
            if (!$requestPattern instanceof RequestPatternInterface) {
                throw new \InvalidArgumentException(sprintf('Invalid request pattern passed to token of type "%s"', get_class($this)), 1327398366);
            }
        }
        $this->requestPatterns = $requestPatterns;
    }