Added update to Repository

This commit is contained in:
2022-09-12 17:23:29 -03:00
parent 51124218d5
commit aff0d4333d
2 changed files with 51 additions and 6 deletions

View File

@ -28,9 +28,13 @@ interface Repository
public function setOptional(array $columns): Repository;
public function addOptional(string $column): Repository;
public function getOptional(): array;
public function getMethod(string $column, bool $get = true): string;
public function getProperty(string $method): string;
public function fillData(Model $model, array $data): Model;
public function mapArray(Model $model, array $data): array;
public function load(array $data): Model;
public function save(Model $model): void;
public function update(Model $model): void;
public function create(array $data): Model;
public function edit(Model $model, array $data): Model;
public function delete(Model $model): void;