VISU - PHP Game Framework

PipelineContainer
in package

Table of Contents

Properties

$storage  : array<class-string, mixed>

Methods

clear()  : void
Removes all instances from the container.
create()  : T
Creates an instance of class T and stores it in the container.
get()  : T
Returns an instance of class T from the container.
has()  : bool
Returns true if an instance of class T exists in the container.
remove()  : void
Removes an instance of class T from the container.
set()  : void
Sets an instance of class T in the container.

Properties

Methods

create()

Creates an instance of class T and stores it in the container.

public create(T> $className) : T
Parameters
$className : T>
Tags
template
Return values
T

get()

Returns an instance of class T from the container.

public get(T> $className) : T
Parameters
$className : T>
Tags
template
Return values
T

has()

Returns true if an instance of class T exists in the container.

public has(T> $className) : bool
Parameters
$className : T>
Tags
template
Return values
bool

remove()

Removes an instance of class T from the container.

public remove(T> $className) : void
Parameters
$className : T>
Tags
template

set()

Sets an instance of class T in the container.

public set(T $instance) : void
Parameters
$instance : T
Tags
template

        
On this page

Search results