SchemaManager
extends Component
in package
implements
ISingleton
Uses
TSingleton
FinalYes
Tags
Table of Contents
Interfaces
Properties
- $instance : ISingleton
- $hashCode : int
- $hashCounter : int
- $schema_cache_key : string
- $schemas : array<string|int, ISchema>
Methods
- __call() : mixed
- __callStatic() : mixed
- __construct() : mixed
- __destruct() : mixed
- __get() : mixed
- extends() : bool
- get() : ISchema
- getByDatabaseName() : ISchema|null
- getDefaultSchema() : ISchema
- getInstance() : ISingleton
- getReflection() : ReflectionClass
- getSchemas() : array<string|int, mixed>
- init() : mixed
- {@inheritdoc}
- create() : ISchema
- put() : mixed
Properties
$instance
protected
static ISingleton
$instance
$hashCode
private
int
$hashCode
$hashCounter
private
static int
$hashCounter
= 0
$schema_cache_key
private
string
$schema_cache_key
= 'schemas.<schema_name>'
$schemas
private
array<string|int, ISchema>
$schemas
= []
Methods
__call()
public
__call(string $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : string
- $arguments : array<string|int, mixed>
Tags
__callStatic()
public
static __callStatic(mixed $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : mixed
- $arguments : array<string|int, mixed>
__construct()
public
__construct() : mixed
__destruct()
public
__destruct() : mixed
__get()
public
__get(string $property) : mixed
Parameters
- $property : string
extends()
public
extends(ReflectionClass $reflector) : bool
Parameters
- $reflector : ReflectionClass
Return values
boolget()
public
get(string $dsn_name) : ISchema
Parameters
- $dsn_name : string
Tags
Return values
ISchemagetByDatabaseName()
public
getByDatabaseName(string $database_name) : ISchema|null
Parameters
- $database_name : string
Tags
Return values
ISchema|nullgetDefaultSchema()
public
getDefaultSchema() : ISchema
Return values
ISchemagetInstance()
public
static getInstance() : ISingleton
Return values
ISingletongetReflection()
public
getReflection() : ReflectionClass
Return values
ReflectionClassgetSchemas()
public
getSchemas() : array<string|int, mixed>
Return values
array<string|int, mixed>init()
{@inheritdoc}
protected
init() : mixed
Tags
create()
private
create(string $schema_name, IDsn $dsn) : ISchema
Parameters
- $schema_name : string
- $dsn : IDsn
Tags
Return values
ISchemaput()
private
put(string $key, ISchema $schema) : mixed
Parameters
- $key : string
- $schema : ISchema