rectifiedAnalyzer = $rectifiedAnalyzer;
$this->pathSkipper = $pathSkipper;
$this->classSkipVoter = $classSkipVoter;
}
/**
* @param string|object $element
*/
public function shouldSkipElement($element) : bool
{
return $this->shouldSkipElementAndFilePath($element, __FILE__);
}
public function shouldSkipFilePath(string $filePath) : bool
{
return $this->pathSkipper->shouldSkip($filePath);
}
/**
* @param string|object $element
*/
public function shouldSkipElementAndFilePath($element, string $filePath) : bool
{
if (!$this->classSkipVoter->match($element)) {
return \false;
}
return $this->classSkipVoter->shouldSkip($element, $filePath);
}
/**
* @param class-string