Skip to content

Commit

Permalink
Merge pull request #870 from Healyhatman/add-static-constructor-to-model
Browse files Browse the repository at this point in the history
Update Model.php
  • Loading branch information
calcinai authored Sep 30, 2022
2 parents f417d09 + 05105f1 commit b132098
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 b132098

Please sign in to comment.