Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions system/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@
*
* @property-read BaseConnection $db
*
* @phpstan-type WhenCallback callable(BaseBuilder, mixed): mixed
* @phpstan-type WhenDefaultCallback callable(BaseBuilder): mixed
*
* @phpstan-import-type row_array from BaseModel
*
* @method $this groupBy($by, ?bool $escape = null)
* @method $this groupEnd()
* @method $this groupStart()
Expand Down Expand Up @@ -78,15 +83,11 @@
* @method $this selectMax(string $select = '', string $alias = '')
* @method $this selectMin(string $select = '', string $alias = '')
* @method $this selectSum(string $select = '', string $alias = '')
* @method $this when($condition, callable $callback, ?callable $defaultCallback = null)
* @method $this whenNot($condition, callable $callback, ?callable $defaultCallback = null)
* @method $this when($condition, WhenCallback $callback, ?WhenDefaultCallback $defaultCallback = null)
* @method $this whenNot($condition, WhenCallback $callback, ?WhenDefaultCallback $defaultCallback = null)
* @method $this where($key, $value = null, ?bool $escape = null)
* @method $this whereIn(?string $key = null, $values = null, ?bool $escape = null)
* @method $this whereNotIn(?string $key = null, $values = null, ?bool $escape = null)
*
* @phpstan-method $this when($condition, callable(BaseBuilder, mixed): mixed $callback, (callable(BaseBuilder): mixed)|null $defaultCallback = null)
* @phpstan-method $this whenNot($condition, callable(BaseBuilder, mixed): mixed $callback, (callable(BaseBuilder): mixed)|null $defaultCallback = null)
* @phpstan-import-type row_array from BaseModel
*/
class Model extends BaseModel
{
Expand Down
Loading