<?php class Model { public static function create() { return new self(); } } class Product extends Model { } $product = Product::create(); var_dump($product);
You have javascript disabled. You will not be able to edit any code.