private function findTargetCompiler($target, $mode): CompilationTarget
    {
        /** @var CompilationTarget $targetCompiler */
        foreach ($this->compilationTargets as $targetCompiler) {
            if ($targetCompiler->supports($target, $mode)) {
                return $targetCompiler;
            }
        }

        throw new TargetUnsupportedException('The given target is not supported.');
    }
private function findTargetCompiler($target, $mode): CompilationTarget
    {
        /** @var CompilationTarget $targetCompiler */
        foreach ($this->compilationTargets as $targetCompiler) {
            if ($targetCompiler->supports($target, $mode)) {
                return $targetCompiler;
            }
        }

        throw new TargetUnsupportedException('The given target is not supported.');
    }
private function findTargetCompiler ( $ target , $ mode ) : CompilationTarget { /** @var CompilationTarget $targetCompiler */ foreach ( $ this -> compilationTargets as $ targetCompiler ) { if ( $ targetCompiler -> supports ( $ target , $ mode ) ) { return $ targetCompiler ; } } throw new TargetUnsupportedException ( 'The given target is not supported.' ) ; }
Finds a target compiler supporting the given target.

@param mixed  $target The target to filter.
@param string $mode   The execution mode (MODE_FILTER or MODE_SATISFIES).

@throws TargetUnsupportedException
Finds a target compiler supporting the given target .