Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
agungsugiarto committed Aug 17, 2020
1 parent b21b9bd commit bb4366b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/Contracts/RepositoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@ interface RepositoryInterface
/**
* Execute the query as a "select" statement.
*
* @return \CodeIgniter\Model
* @param array $columns
* @return array
*/
public function get(array $columns = ['*']);

/**
* Execute the query and get the first result.
*
* @param array $columns
* @return \CodeIgniter\Model
* @return array
*/
public function first($columns = ['*']);

Expand All @@ -24,7 +25,7 @@ public function first($columns = ['*']);
*
* @param mixed $id
* @param array $columns
* @return \CodeIgniter\Model
* @return array|object
*/
public function find($id, $columns = ['*']);

Expand All @@ -33,8 +34,7 @@ public function find($id, $columns = ['*']);
*
* @param array $conditions
* @param array $columns
*
* @return \CodeIgniter\Model
* @return array
*/
public function findWhere(array $conditions, array $columns = ['*']);

Expand All @@ -43,7 +43,7 @@ public function findWhere(array $conditions, array $columns = ['*']);
*
* @param int $perPage
* @param array $columns
* @return \CodeIgniter\Model
* @return array
*
* @throws \InvalidArgumentException
*/
Expand All @@ -53,7 +53,9 @@ public function paginate($perPage = null, $columns = ['*']);
* Save a new model and return the instance.
*
* @param array $attributes
* @return \CodeIgniter\Model
* @return \CodeIgniter\Database\BaseResult|false|int|string
*
* @throws \ReflectionException
*/
public function create(array $attributes);

Expand All @@ -63,6 +65,8 @@ public function create(array $attributes);
* @param array $values
* @param int $id
* @return int
*
* @throws \ReflectionException
*/
public function update(array $values, $id);

Expand Down
2 changes: 2 additions & 0 deletions src/Eloquent/BaseRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public function paginate($perPage = null, $columns = ['*'])
*
* @param array $attributes
* @return \CodeIgniter\Database\BaseResult|false|int|string
*
* @throws \ReflectionException
*/
public function create(array $attributes)
Expand All @@ -106,6 +107,7 @@ public function create(array $attributes)
* @param array $values
* @param int $id
* @return int
*
* @throws \ReflectionException
*/
public function update(array $values, $id)
Expand Down

0 comments on commit bb4366b

Please sign in to comment.