Skip to content

Commit

Permalink
Update Model.php
Browse files Browse the repository at this point in the history
Add a static constructor so can more cleanly chain after instantiation

Remove the EARNINGTYPE_FIXED rate because it's definitely not valid in Xero anymore
  • Loading branch information
Healyhatman committed Sep 16, 2022
1 parent f417d09 commit 05105f1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/XeroPHP/Remote/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ public function __construct(Application $application = null)
$this->_data = [];
$this->_associated_objects = [];
}

public static function make(Application $application = null)
{
return new static($application);
}

/**
* This should be compulsory in the constructor in the future,
Expand Down

0 comments on commit 05105f1

Please sign in to comment.