public function testInstance() { $get = new Close($this->transport); $get->setId(10); $this->assertEquals(10, $get->getId()); $this->assertEquals([], $get->getParamWhiteList()); $this->assertEquals('PATCH', $get->getMethod()); $this->assertEquals('claims/10/close/', $get->getURI()); }
/** * @param int $id * @return bool */ public function close($id) { $endpoint = new Close($this->getTransport()); $endpoint->setId($id); try { $result = $endpoint->performRequest(); } catch (ResourceNotFoundException $e) { return false; } return $result['status'] == 204; }