delete() public method

public delete ( Object $object ) : Response
$object XeroPHP\Remote\Object
return XeroPHP\Remote\Response
Beispiel #1
0
 /**
  * Shorthand delete an object if it is instantiated with app context.
  *
  * @return Response|null
  * @throws Exception
  */
 public function delete()
 {
     if ($this->_application === null) {
         throw new Exception('->delete() is only available on objects that have an injected application context.');
     }
     return $this->_application->delete($this);
 }