20250128#1

This commit is contained in:
User
2025-01-28 03:31:47 +03:00
parent 2cfc92584c
commit 2afc439354
4 changed files with 235 additions and 109 deletions

View File

@@ -8,6 +8,7 @@
namespace Rmphp\Storage;
use ReflectionException;
use Rmphp\Storage\Entity\EntityInterface;
interface RepositoryInterface {
@@ -22,18 +23,20 @@ interface RepositoryInterface {
/**
* @param object $class
* @param callable|null $method
* @return array
* @param object $object
* @param array $data
* @return mixed
* @throws RepositoryException
*/
public function getAllProperties(object $class, callable $method = null) : array;
public function updateFromData(object $object, array $data) : mixed;
/**
* @param object $class
* @param object $object
* @param callable|null $method
* @return array
* @throws RepositoryException
*/
public function getProperties(object $class, callable $method = null) : array;
public function getProperties(object $object, callable $method = null) : array;
}