for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace Innmind\Compose\Definition\Argument\Type;
use Innmind\Compose\Definition\Argument\Type;
final class Instance implements Type
{
private $class;
public function __construct(string $class)
$this->class = $class;
}
/**
* {@inheritdoc}
*/
public function accepts($value): bool
return $value instanceof $this->class;