From f7e840bfc92c675132660ecd1fad79c60f4c81ea Mon Sep 17 00:00:00 2001 From: Matthew Batchelder Date: Thu, 16 Feb 2023 14:55:47 -0500 Subject: [PATCH] Adds a simple Repository abstract with some contracts Adds 3 contracts: 1. `Deleteable` 2. `Insertable` 3. `Updateable` --- .../Repositories/Contracts/Deleteable.php | 18 ++++++++++++++++++ .../Repositories/Contracts/Insertable.php | 18 ++++++++++++++++++ .../Repositories/Contracts/Updateable.php | 18 ++++++++++++++++++ src/Models/Repositories/Repository.php | 16 ++++++++++++++++ 4 files changed, 70 insertions(+) create mode 100644 src/Models/Repositories/Contracts/Deleteable.php create mode 100644 src/Models/Repositories/Contracts/Insertable.php create mode 100644 src/Models/Repositories/Contracts/Updateable.php create mode 100644 src/Models/Repositories/Repository.php diff --git a/src/Models/Repositories/Contracts/Deleteable.php b/src/Models/Repositories/Contracts/Deleteable.php new file mode 100644 index 0000000..7aad5ab --- /dev/null +++ b/src/Models/Repositories/Contracts/Deleteable.php @@ -0,0 +1,18 @@ +