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