public function filterSpec($target, Specification $spec, array $executionContext = [])
    {
        return $this->filter($target, $spec->getRule(), $spec->getParameters(), $executionContext);
    }
public function filterSpec($target, Specification $spec, array $executionContext = [])
    {
        return $this->filter($target, $spec->getRule(), $spec->getParameters(), $executionContext);
    }
public function filterSpec ( $ target , Specification $ spec , array $ executionContext = [ ] ) { return $ this -> filter ( $ target , $ spec -> getRule ( ) , $ spec -> getParameters ( ) , $ executionContext ) ; }
Filters a target using the given specification.
The targetCompiler to use is determined at runtime using the registered ones.

@param mixed         $target           The target to filter.
@param Specification $spec             The specification to apply.
@param array         $executionContext The execution context.

@return mixed The filtered target.

@throws TargetUnsupportedException
Filters a target using the given specification . The targetCompiler to use is determined at runtime using the registered ones .