PHP Class Flarum\Core\Post\RegisteredTypesScope

Inheritance: implements Illuminate\Database\Eloquent\ScopeInterface
Show file Open project: flarum/core

Protected Properties

Property Type Description
$bindingCount integer The number of where bindings we added.
$bindingIndex integer The index at which we added where bindings.
$whereIndex integer The index at which we added a where clause.

Public Methods

Method Description
apply ( Builder $builder, Model $post ) : void Apply the scope to a given Eloquent query builder.
remove ( Builder $builder, Model $post ) : void Remove the scope from the given Eloquent query builder.

Method Details

apply() public method

Apply the scope to a given Eloquent query builder.
public apply ( Builder $builder, Model $post ) : void
$builder Illuminate\Database\Eloquent\Builder
$post Illuminate\Database\Eloquent\Model
return void

remove() public method

Remove the scope from the given Eloquent query builder.
public remove ( Builder $builder, Model $post ) : void
$builder Illuminate\Database\Eloquent\Builder
$post Illuminate\Database\Eloquent\Model
return void

Property Details

$bindingCount protected property

The number of where bindings we added.
protected int $bindingCount
return integer

$bindingIndex protected property

The index at which we added where bindings.
protected int $bindingIndex
return integer

$whereIndex protected property

The index at which we added a where clause.
protected int $whereIndex
return integer