diff --git a/src/Config/AppDatabaseConfig.php b/src/Config/AppDatabaseConfig.php index 4eaae91..a418026 100644 --- a/src/Config/AppDatabaseConfig.php +++ b/src/Config/AppDatabaseConfig.php @@ -54,14 +54,14 @@ /** * @class AppDatabaseConfig * @package Platine\Framework\Config - * @template TEntity as Configuration + * @template TDbConfigurationEntity as \Platine\Framework\Config\Model\Configuration * @implements ArrayAccess */ class AppDatabaseConfig implements ArrayAccess { /** * The configuration loader to use - * @var DatabaseConfigLoaderInterface + * @var DatabaseConfigLoaderInterface */ protected DatabaseConfigLoaderInterface $loader; @@ -79,7 +79,7 @@ class AppDatabaseConfig implements ArrayAccess /** * Create new configuration instance - * @param DatabaseConfigLoaderInterface $loader the loader to use + * @param DatabaseConfigLoaderInterface $loader the loader to use * @param string $env the name of the environment */ public function __construct(DatabaseConfigLoaderInterface $loader, string $env = '') @@ -183,7 +183,7 @@ public function setEnvironment(string $env): self /** * Return the configuration current loader - * @return DatabaseConfigLoaderInterface + * @return DatabaseConfigLoaderInterface */ public function getLoader(): DatabaseConfigLoaderInterface { @@ -193,7 +193,7 @@ public function getLoader(): DatabaseConfigLoaderInterface /** * Set the configuration loader * - * @param DatabaseConfigLoaderInterface $loader + * @param DatabaseConfigLoaderInterface $loader * @return $this */ public function setLoader(DatabaseConfigLoaderInterface $loader): self @@ -205,7 +205,7 @@ public function setLoader(DatabaseConfigLoaderInterface $loader): self /** * Return all the configuration - * @return TEntity[] + * @return TDbConfigurationEntity[] */ public function all(): array { diff --git a/src/Config/ConfigurationRepositoryInterface.php b/src/Config/ConfigurationRepositoryInterface.php index 9c435fd..c2fa3ed 100644 --- a/src/Config/ConfigurationRepositoryInterface.php +++ b/src/Config/ConfigurationRepositoryInterface.php @@ -52,8 +52,8 @@ /** * @class ConfigurationRepositoryInterface * @package Platine\Framework\Config - * @template TEntity as \Platine\Orm\Entity - * @extends RepositoryInterface + * @template TDbConfigurationEntity as \Platine\Orm\Entity + * @extends RepositoryInterface */ interface ConfigurationRepositoryInterface extends RepositoryInterface { diff --git a/src/Config/DatabaseConfigLoaderInterface.php b/src/Config/DatabaseConfigLoaderInterface.php index a6e9b08..173c6a8 100644 --- a/src/Config/DatabaseConfigLoaderInterface.php +++ b/src/Config/DatabaseConfigLoaderInterface.php @@ -53,14 +53,14 @@ /** * @class DatabaseConfigLoaderInterface * @package Platine\Framework\Config - * @template TEntity as Entity + * @template TDbConfigurationEntity as Entity */ interface DatabaseConfigLoaderInterface extends LoaderInterface { /** * Load the configuration from database * @param array $where - * @return TEntity|null + * @return TDbConfigurationEntity|null */ public function loadConfig(array $where = []): ?Entity; @@ -73,14 +73,14 @@ public function insertConfig(array $data); /** * Update the configuration - * @param TEntity $entity + * @param TDbConfigurationEntity $entity * @return bool */ public function updateConfig(Entity $entity): bool; /** * Return all the configuration - * @return TEntity[] + * @return TDbConfigurationEntity[] */ public function all(): array; }