mirror of
https://github.com/danog/Valinor.git
synced 2024-11-30 04:39:05 +01:00
1a599b0bdf
There was no benefits having the return type as `iterable`, but it would make it harder to use the result of the method.
32 lines
513 B
PHP
32 lines
513 B
PHP
<?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
|
|
{
|
|
return [];
|
|
}
|
|
|
|
public function count(): int
|
|
{
|
|
return 1;
|
|
}
|
|
|
|
public function getIterator(): Traversable
|
|
{
|
|
yield from [];
|
|
}
|
|
}
|