Skip to content

Commit

Permalink
Merge pull request #39 from geraintp/master
Browse files Browse the repository at this point in the history
add flexibility to inherit the models and define and update the model factories
  • Loading branch information
Dartui authored May 15, 2024
2 parents 3d7c837 + 217740e commit bf807f8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Model/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Customer extends User
*
* @return CustomerFactory
*/
protected static function newFactory(): CustomerFactory
protected static function newFactory()
{
return CustomerFactory::new();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class Item extends Model
*
* @return ItemFactory
*/
protected static function newFactory(): ItemFactory
protected static function newFactory()
{
return ItemFactory::new();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class Order extends Post
*
* @return OrderFactory
*/
protected static function newFactory(): OrderFactory
protected static function newFactory()
{
return OrderFactory::new();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ protected static function boot()
*
* @return ProductFactory
*/
protected static function newFactory(): ProductFactory
protected static function newFactory()
{
return ProductFactory::new();
}
Expand Down

0 comments on commit bf807f8

Please sign in to comment.