Skip to content

Commit b132098

Browse files
authored
Merge pull request #870 from Healyhatman/add-static-constructor-to-model
Update Model.php
2 parents f417d09 + 05105f1 commit b132098

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/XeroPHP/Remote/Model.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ public function __construct(Application $application = null)
7777
$this->_data = [];
7878
$this->_associated_objects = [];
7979
}
80+
81+
public static function make(Application $application = null)
82+
{
83+
return new static($application);
84+
}
8085

8186
/**
8287
* This should be compulsory in the constructor in the future,

0 commit comments

Comments
 (0)