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