20250113#1

This commit is contained in:
User
2025-01-13 04:23:59 +03:00
parent 448128d228
commit ac572cc92b
13 changed files with 409 additions and 23 deletions

View File

@@ -0,0 +1,39 @@
<?php
/**
* Created by PhpStorm.
* User: Zuev Yuri
* Date: 12.01.2025
* Time: 21:48
*/
namespace Rmphp\Storage;
use Rmphp\Storage\Entity\EntityInterface;
interface RepositoryInterface {
/**
* @param string $class
* @param $data
* @return object
* @throws RepositoryException
*/
public function createFromData(string $class, $data) : mixed;
/**
* @param object $class
* @param callable|null $method
* @return array
*/
public function getAllProperties(object $class, callable $method = null) : array;
/**
* @param object $class
* @param callable|null $method
* @return array
*/
public function getProperties(object $class, callable $method = null) : array;
}