save() public method

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