/**
  * @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;
 }
Example #2
0
 /**
  * @expectedException \Hitmeister\Component\Api\Exceptions\RuntimeException
  * @expectedExceptionMessage Required params id is not set
  */
 public function testExceptionOnEmptyId()
 {
     $get = new Close($this->transport);
     $get->getURI();
 }