queue = $queue; $this->class = $class; } /** * @param string $key * @param mixed $value * * @return $this */ public function setParam($key, $value) { $this->params[$key] = $value; return $this; } /** * @param string $key * * @return mixed|null */ public function getParam($key) { return (isset($this->params[$key])) ? $this->params[$key] : null; } /** * Execute Event. */ public function trigger() { Resque::enqueue($this->queue, $this->class, $this->params); } }