17 lines
294 B
PHP
17 lines
294 B
PHP
<?php
|
|
|
|
namespace Tests\Fakes;
|
|
|
|
use App\Text\CreateTextDto;
|
|
use App\Text\Text;
|
|
use App\Text\TextRepository;
|
|
|
|
class FakeTextRepository implements TextRepository
|
|
{
|
|
public function create(CreateTextDto $dto): Text
|
|
{
|
|
return new Text(
|
|
name: $dto->name,
|
|
);
|
|
}
|
|
}
|