Skip to content

Commit b1c2a69

Browse files
committed
fixed curd methods arguments optional
1 parent a15997a commit b1c2a69

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/DatabaseAdapterInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function count(string $table): int;
2222
* @throws DriverException
2323
* @throws EmptyResultException
2424
*/
25-
public function get(string $table, array|string $columns, array $conditions, array $options): DatabaseAdapterResponse;
25+
public function get(string $table, array|string $columns = '*', array $conditions = [], array $options = []): DatabaseAdapterResponse;
2626

2727
/**
2828
* @throws ArgumentValidationException
@@ -34,13 +34,13 @@ public function insert(string $table, array $data): DatabaseAdapterResponse;
3434
* @throws ArgumentValidationException
3535
* @throws DriverException
3636
*/
37-
public function update(string $table, array $data, array $conditions, array $options): DatabaseAdapterResponse;
37+
public function update(string $table, array $data, array $conditions = [], array $options = []): DatabaseAdapterResponse;
3838

3939
/**
4040
* @throws ArgumentValidationException
4141
* @throws DriverException
4242
*/
43-
public function delete(string $table, array $conditions, array $options): DatabaseAdapterResponse;
43+
public function delete(string $table, array $conditions = [], array $options = []): DatabaseAdapterResponse;
4444

4545

4646

0 commit comments

Comments
 (0)