public function onGroupSelected(Response $response) { $message = $response->getMessage(); $this->result = array_combine(['count', 'first', 'last', 'name'], explode(' ', $message)); }
public function onPostingFailed(Response $response) { throw new RuntimeException(sprintf('Posting failed: %s', $response->getMessage()), $response->getStatusCode()); }
/** * Return the message's reference. * * @param Response $response */ public function onFoundPath(Response $response) { $this->result = $response->getMessage(); }