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;
use Innmind\Immutable\SetInterface;
final class Set implements Type
{
private $type;
public function __construct(string $type)
$this->type = $type;
}
/**
* {@inheritdoc}
*/
public function accepts($value): bool
if (!$value instanceof SetInterface) {
return false;
return (string) $value->type() === $this->type;