grids[$key]; unset($this->grids[$key]); return $result; } /** * 借用 * @param $key * @return mixed */ private function borrow($key) { return $this->grids[$key]; } /** * 丢掉 * @param $key * @return mixed */ private function drop($key) { unset($this->grids[$key]); } /** * 存 * @param $key * @param $value * @return mixed */ private function store($key, $value) { return $this->grids[$key] = $value; } private function _log($key, $action, $path) { $this->logs[$key] = [$action, $path]; } public function trace($key) { return $this->logs[$key]; } public function __call($name, $arguments) { $this->_log($arguments[0], $name, debug_backtrace(0, 1)); return $this->$name(...$arguments); } }