fn = $callback; $this->p = $param; } public function value($fields) { return call_user_func($this->fn, $fields, $this->p); } }