This commit is contained in:
2026-04-26 23:47:49 +02:00
parent 1b95f03d1e
commit b073e009d8
5288 changed files with 1112699 additions and 55536 deletions

View File

@@ -0,0 +1,2 @@
# sb-stubs
Shared stubs for Smash Balloon like service interfaces and abstracts

View File

@@ -0,0 +1,19 @@
{
"name": "smashballoon\/stubs",
"description": "Shared common stubs.",
"type": "library",
"version": "1.0.0",
"autoload": {
"psr-4": {
"Smashballoon\\Stubs\\": "src\/"
}
},
"authors": [
{
"name": "Ahmed Hussein",
"email": "ahussein@awesomemotive.com"
}
],
"minimum-stability": "dev",
"require": {}
}

View File

@@ -0,0 +1,18 @@
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "bf7766bf43df34d0f5f9d1b6948058d7",
"packages": [],
"packages-dev": [],
"aliases": [],
"minimum-stability": "stable",
"stability-flags": [],
"prefer-stable": false,
"prefer-lowest": false,
"platform": [],
"platform-dev": [],
"plugin-api-version": "2.2.0"
}

View File

@@ -0,0 +1,12 @@
<?php
namespace Smashballoon\Stubs\Services;
/** @internal */
abstract class ServiceProvider implements \Smashballoon\Stubs\Services\ServiceProviderInterface
{
public function register()
{
// TODO: Implement register() method.
}
}

View File

@@ -0,0 +1,9 @@
<?php
namespace Smashballoon\Stubs\Services;
/** @internal */
interface ServiceProviderInterface
{
public function register();
}

View File

@@ -0,0 +1,20 @@
<?php
namespace Smashballoon\Stubs\Traits;
/** @internal */
trait Singleton
{
protected static $instance;
public static function getInstance()
{
return isset(static::$instance) ? static::$instance : (static::$instance = new static());
}
private function __construct()
{
$this->init();
}
protected function init()
{
}
}