Files
oficial/app_old/aldarien/contract/app/Definition/Contract.php
Juan Pablo Vial be33305cf1 config
2023-07-24 20:41:38 -04:00

21 lines
337 B
PHP

<?php
namespace App\Definition;
trait Contract
{
protected static $instance = null;
private function __construct() {}
protected static function getInstance()
{
if (self::$instance == null) {
self::$instance = static::newInstance();
}
return self::$instance;
}
abstract protected static function newInstance();
}
?>