<?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(&$AOBVZ) { $this->queries->each(function ($FT9zA) use(&$AOBVZ) { $AOBVZ = call_user_func_array(array($AOBVZ, $FT9zA['method']), $FT9zA['arguments'] ? $FT9zA['arguments'] : array()); }); } public function __call($JHYOH, $HPXJC) { $this->queries->push(array('method' => $JHYOH, 'arguments' => $HPXJC)); return $this; } }