api-erstellen #1

Merged
TorstenHettstedt merged 52 commits from api-erstellen into master 2021-04-07 13:00:46 +02:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 610e892063 - Show all commits
@@ -4,7 +4,7 @@
namespace TorstenHettstedt\TimekeepingApi\Repositories;
class UnsupportedModelException extends RepositoryException
class RepositoryModelAlreadyExists extends RepositoryException
{
}
@@ -11,21 +11,21 @@ interface RepositoryWriterInterface
/**
* @param T $model
*
* @throws UnsupportedModelException
* @throws RepositoryModelAlreadyExists
*/
public function insert(mixed $model): void;
/**
* @param T $model
*
* @throws UnsupportedModelException
* @throws RepositoryRecordNotFoundException
*/
public function update(mixed $model): void;
/**
* @param T $model
*
* @throws UnsupportedModelException
* @throws RepositoryRecordNotFoundException
*/
public function delete(mixed $model): void;
}