public function matches($pattern, $translation = null)
	{
		return $this->pattern === $pattern and (!$translation or $translation === $this->translation);
	}
public function matches($pattern, $translation = null)
	{
		return $this->pattern === $pattern and (!$translation or $translation === $this->translation);
	}
public function matches ( $ pattern , $ translation = null ) { return $ this -> pattern === $ pattern and ( ! $ translation or $ translation === $ this -> translation ) ; }
Checks whether the resolver matches a given pattern and optional translation

@param string          $pattern
@param string|callable $translation

@return boolean
Checks whether the resolver matches a given pattern and optional translation