Skip to content

Commit

Permalink
updating implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
SignpostMarv committed Feb 22, 2020
1 parent b989f20 commit 827ee07
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion Tests/Fixtures/DaftTypedObjectMemoryRepository.php
Expand Up @@ -6,6 +6,7 @@

namespace SignpostMarv\DaftTypedObject\Fixtures;

use DaftFramework\RelaxedObjectRepository\AppendableObjectRepository;
use DaftFramework\RelaxedObjectRepository\ConvertingRepository;
use RuntimeException;
use SignpostMarv\DaftTypedObject\AbstractDaftTypedObjectRepository;
Expand All @@ -23,11 +24,13 @@
*
* @template-extends AbstractDaftTypedObjectRepository<T1, T2, T3>
*
* @template-implements AppendableTypedObjectRepository<T1, T2, S1, T3>
* @template-implements AppendableObjectRepository<T1, T2, S1|S2, T3>
* @template-implements AppendableTypedObjectRepository<T1, T2, S1|S2, T3>
* @template-implements ConvertingRepository<T1, S2, T2, T3>
* @template-implements PatchableObjectRepository<T1, T2, S1, T3>
*/
class DaftTypedObjectMemoryRepository extends AbstractDaftTypedObjectRepository implements
AppendableObjectRepository,
AppendableTypedObjectRepository,
ConvertingRepository,
PatchableObjectRepository
Expand Down Expand Up @@ -86,6 +89,16 @@ public function AppendTypedObjectFromArray(
return $object;
}

public function AppendObject(object $object) : object
{
return $this->AppendTypedObject($object);
}

public function AppendObjectFromArray(array $data) : object
{
return $this->AppendTypedObjectFromArray($data);
}

public function UpdateTypedObject(
DaftTypedObjectForRepository $object
) : void {
Expand Down

0 comments on commit 827ee07

Please sign in to comment.