/
home
/
henzagold
/
server
/
app
/
Te
/
File Upload :
llllll
Current File: /home/henzagold/server/app/Te/Scope.php
<?php namespace App\DB\Te; /** * Created by PhpStorm. * User: AraNote * Date: 12/04/2018 * Time: 10:34 PM */ class Scope { public $items, $query; /** * Scope constructor. * @param $items */ public function __construct($query, $items) { $this->query = $query; $this->items = $items; } public static function init($query, $items) { return new Scope($query, $items); } public function run() { foreach ($this->items as $index => $item) { Filter::init($this->query, $item, $index == 0)->run(); } // dd($this->query->toSql()); return $this->query; } }
Copyright ©2k19 -
Hexid
|
Tex7ure