Valinor/tests/Fake/Definition/FakeAttributes.php
Romain Canon 1a599b0bdf misc!: change Attributes::ofType return type to array
There was no benefits having the return type as `iterable`, but it would
make it harder to use the result of the method.
2022-03-17 21:15:11 +01:00

32 lines
506 B
PHP

<?php
declare(strict_types=1);
namespace CuyZ\Valinor\Tests\Fake\Definition;
use CuyZ\Valinor\Definition\Attributes;
use Traversable;
final class FakeAttributes implements Attributes
{
public function has(string $className): bool
{
return false;
}
public function ofType(string $className): array
{
return [];
}
public function count(): int
{
return 0;
}
public function getIterator(): Traversable
{
yield from [];
}
}