<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Repository\Filter; use Illuminate\Database\Query\Builder; use Illuminate\Support\Collection; class ScopeFilter { private $queries; public function __construct() { $this->queries = new Collection(); } public function executeQueries(&$vw3jY) { $this->queries->each(function ($HDpl6) use(&$vw3jY) { $vw3jY = call_user_func_array(array($vw3jY, $HDpl6['method']), $HDpl6['arguments'] ? $HDpl6['arguments'] : array()); }); } public function __call($fVu6a, $RSGSj) { $this->queries->push(array('method' => $fVu6a, 'arguments' => $RSGSj)); return $this; } }