* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Workflow\SupportStrategy; @trigger_error(sprintf('"%s" is deprecated since Symfony 4.1. Use "%s" instead.', ClassInstanceSupportStrategy::class, InstanceOfSupportStrategy::class), \E_USER_DEPRECATED); use Symfony\Component\Workflow\Workflow; /** * @author Andreas Kleemann * * @deprecated since Symfony 4.1, use InstanceOfSupportStrategy instead */ final class ClassInstanceSupportStrategy implements SupportStrategyInterface { private $className; public function __construct(string $className) { $this->className = $className; } /** * {@inheritdoc} */ public function supports(Workflow $workflow, $subject): bool { return $subject instanceof $this->className; } public function getClassName(): string { return $this->className; } }