From 2764e0e23e852e234ba2cbc9de5e40e5c4d87f62 Mon Sep 17 00:00:00 2001 From: BMTmohammedtaha Date: Sat, 11 Nov 2023 09:08:55 +0100 Subject: [PATCH] init package files --- src/Contracts/DataAttributeInterface.php | 2 +- src/Contracts/DataCollectionInterface.php | 2 +- src/Contracts/DataRules.php | 2 +- src/DataAttribute.php | 2 ++ src/DataCollection.php | 1 + src/DataRules.php | 1 + 6 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/Contracts/DataAttributeInterface.php b/src/Contracts/DataAttributeInterface.php index 8968809..c073398 100644 --- a/src/Contracts/DataAttributeInterface.php +++ b/src/Contracts/DataAttributeInterface.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Effectra\DataOptimizer; +namespace Effectra\DataOptimizer\Contracts; /** * Class DataAttribute diff --git a/src/Contracts/DataCollectionInterface.php b/src/Contracts/DataCollectionInterface.php index 06c3f13..5504231 100644 --- a/src/Contracts/DataCollectionInterface.php +++ b/src/Contracts/DataCollectionInterface.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Effectra\DataOptimizer; +namespace Effectra\DataOptimizer\Contracts; use Closure; use Traversable; diff --git a/src/Contracts/DataRules.php b/src/Contracts/DataRules.php index 1e3638f..d15643a 100644 --- a/src/Contracts/DataRules.php +++ b/src/Contracts/DataRules.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Effectra\DataOptimizer; +namespace Effectra\DataOptimizer\Contracts; interface DataRulesInterface extends DataAttributeInterface diff --git a/src/DataAttribute.php b/src/DataAttribute.php index 7e5d7fc..16a30cf 100644 --- a/src/DataAttribute.php +++ b/src/DataAttribute.php @@ -4,6 +4,8 @@ namespace Effectra\DataOptimizer; +use Effectra\DataOptimizer\Contracts\DataAttributeInterface; + /** * Class DataAttribute * diff --git a/src/DataCollection.php b/src/DataCollection.php index 66eff75..79c39ef 100644 --- a/src/DataCollection.php +++ b/src/DataCollection.php @@ -6,6 +6,7 @@ use ArrayIterator; use Closure; +use Effectra\DataOptimizer\Contracts\DataCollectionInterface; use Traversable; /** diff --git a/src/DataRules.php b/src/DataRules.php index 896cb96..4490497 100644 --- a/src/DataRules.php +++ b/src/DataRules.php @@ -4,6 +4,7 @@ namespace Effectra\DataOptimizer; +use Effectra\DataOptimizer\Contracts\DataRulesInterface; /** * DataRules class for defining validation rules and attributes for data.