mirror of
https://github.com/danog/Valinor.git
synced 2024-12-02 17:48:14 +01:00
7869cbd09c
This abstraction layer was not useful, so it is removed to simplify the API around `ClassDefinition`. A new method `ClassDefinition::type()` is also added, giving access to the `ClassType` instance when working with a class definition.
19 lines
498 B
PHP
19 lines
498 B
PHP
<?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;
|
|
|
|
final class FakeClassDefinitionRepository implements ClassDefinitionRepository
|
|
{
|
|
public function for(ClassType $type): ClassDefinition
|
|
{
|
|
return FakeClassDefinition::new();
|
|
}
|
|
}
|