Valinor/tests/Fake/Mapper/Object/FakeObjectBuilder.php
Romain Canon 8a74147d4c misc!: allow object builder to yield arguments without source
The `Argument` class must now be instantiated with one of the `required`
or `optional` static constructors.
2022-01-07 13:41:15 +01:00

22 lines
380 B
PHP

<?php
declare(strict_types=1);
namespace CuyZ\Valinor\Tests\Fake\Mapper\Object;
use CuyZ\Valinor\Mapper\Object\ObjectBuilder;
use stdClass;
final class FakeObjectBuilder implements ObjectBuilder
{
public function describeArguments(): iterable
{
return [];
}
public function build(array $arguments): object
{
return new stdClass();
}
}