public function update($actionId, $name, $class, $config) { $action = $this->actionTable->get($actionId); if (!empty($action)) { $this->actionTable->update(array('id' => $action->id, 'name' => $name, 'class' => $class, 'config' => $config, 'date' => new \DateTime())); } else { throw new StatusCode\NotFoundException('Could not find action'); } }