<?php

namespace Ignite\Core\Entities\Scopes;

use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Scope;

class ParticipantScope implements Scope
{
    /**
     * Apply the scope to a given Eloquent query builder.
     *
     * @param \Illuminate\Database\Eloquent\Builder $builder
     * @param \Illuminate\Database\Eloquent\Model $model
     * @return void
     */
    public function apply(Builder $builder, Model $model)
    {
        /*
         * This class is resolved out of the container for the model. You may give a custom global scope for the model
         * by replacing this class with a different class in the container via a service provider (most likely your
         * program's service provider). Ideally you would extend this class and call parent::apply($builder, $model)
         * somewhere in your apply method. If for no other reason than propriety :).
         */
    }
}
