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;
    }
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;
    }
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 ; }
Sets request patterns

@param array $requestPatterns Array of RequestPatternInterface to be set
@return void
@throws \InvalidArgumentException
Sets request patterns