Valinor/tests/Fake/Definition/FakeNonEmptyAttributes.php

32 lines
513 B
PHP
Raw Normal View History

2021-11-28 17:43:02 +01:00
<?php
declare(strict_types=1);
namespace CuyZ\Valinor\Tests\Fake\Definition;
use CuyZ\Valinor\Definition\Attributes;
use Traversable;
final class FakeNonEmptyAttributes implements Attributes
{
public function has(string $className): bool
{
return true;
}
public function ofType(string $className): array
2021-11-28 17:43:02 +01:00
{
return [];
}
public function count(): int
{
return 1;
}
public function getIterator(): Traversable
{
yield from [];
}
}