api-erstellen #1
+1
-1
@@ -4,7 +4,7 @@
|
||||
namespace TorstenHettstedt\TimekeepingApi\Repositories;
|
||||
|
||||
|
||||
class UnsupportedModelException extends RepositoryException
|
||||
class RepositoryModelAlreadyExists extends RepositoryException
|
||||
|
TorstenHettstedt marked this conversation as resolved
Outdated
|
||||
{
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user
Ein besserer Name wäre
RepositoryRecordAlreadyExistException