public function satisfiesSpec($target, Specification $spec, array $executionContext = []): bool
    {
        return $this->satisfies($target, $spec->getRule(), $spec->getParameters(), $executionContext);
    }
public function satisfiesSpec($target, Specification $spec, array $executionContext = []): bool
    {
        return $this->satisfies($target, $spec->getRule(), $spec->getParameters(), $executionContext);
    }
public function satisfiesSpec ( $ target , Specification $ spec , array $ executionContext = [ ] ) : bool { return $ this -> satisfies ( $ target , $ spec -> getRule ( ) , $ spec -> getParameters ( ) , $ executionContext ) ; }
Tells if a target satisfies the given specification.
The target compiler to use is determined at runtime using the registered ones.

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

@throws TargetUnsupportedException
Tells if a target satisfies the given specification . The target compiler to use is determined at runtime using the registered ones .