Skip to content

Commit

Permalink
docs: Update docs to allow mixed returns
Browse files Browse the repository at this point in the history
  • Loading branch information
AuditeMarlow committed Jan 31, 2019
1 parent d9a259f commit c770da1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/AbstractRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ abstract class AbstractRepository implements Repository, RepositorySpecification
protected $app;

/**
* @var \Illuminate\Database\Eloquent\Model
* @var \Illuminate\Database\Eloquent\Model|mixed
*/
protected $model;

Expand Down Expand Up @@ -47,7 +47,7 @@ abstract public function model();

/**
* @throws \Guardian360\Repository\Exceptions\RepositoryException
* @return \Illuminate\Database\Eloquent\Model
* @return \Illuminate\Database\Eloquent\Model|mixed
*/
protected function makeModel()
{
Expand Down Expand Up @@ -77,7 +77,7 @@ protected function buildQuery()
}

/**
* @return []\Illuminate\Database\Eloquent\Model
* @return []\Illuminate\Database\Eloquent\Model|mixed
*/
public function all(array $columns = ['*'])
{
Expand All @@ -86,7 +86,7 @@ public function all(array $columns = ['*'])

/**
* @param mixed $id
* @return \Illuminate\Database\Eloquent\Model|null
* @return \Illuminate\Database\Eloquent\Model|mixed|null
*/
public function find($id)
{
Expand All @@ -96,7 +96,7 @@ public function find($id)
/**
* @param string $attribute
* @param mixed $value
* @return \Illuminate\Database\Eloquent\Model|null
* @return \Illuminate\Database\Eloquent\Model|mixed|null
*/
public function findBy(string $attribute, $value, array $columns = ['*'])
{
Expand All @@ -106,7 +106,7 @@ public function findBy(string $attribute, $value, array $columns = ['*'])
/**
* @param string $attribute
* @param mixed $value
* @return []\Illuminate\Database\Eloquent\Model
* @return []\Illuminate\Database\Eloquent\Model|mixed
*/
public function findAllBy(string $attribute, $value, array $columns = ['*'])
{
Expand Down Expand Up @@ -135,7 +135,7 @@ public function paginate(int $perPage = 10, int $page = 1)

/**
* @param array $data
* @return \Illuminate\Database\Eloquent\Model
* @return \Illuminate\Database\Eloquent\Model|mixed
*/
public function create(array $data)
{
Expand Down

0 comments on commit c770da1

Please sign in to comment.