Valinor/tests/Fake/Definition/Repository/FakeClassDefinitionRepository.php

19 lines
498 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\Repository;
use CuyZ\Valinor\Definition\ClassDefinition;
use CuyZ\Valinor\Definition\Repository\ClassDefinitionRepository;
use CuyZ\Valinor\Tests\Fake\Definition\FakeClassDefinition;
use CuyZ\Valinor\Type\Types\ClassType;
2021-11-28 17:43:02 +01:00
final class FakeClassDefinitionRepository implements ClassDefinitionRepository
{
public function for(ClassType $type): ClassDefinition
2021-11-28 17:43:02 +01:00
{
return FakeClassDefinition::new();
}
}