Skip to content

Commit

Permalink
add flexiblity to interit the models and update the model factories
Browse files Browse the repository at this point in the history
  • Loading branch information
geraint-kaweb committed Apr 9, 2024
1 parent 686500b commit 217740e
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 217740e

Please sign in to comment.