PHP 트레잇 Bluz\Common\Singleton

저자: Anton Shevchuk
파일 보기 프로젝트 열기: bluzphp/framework

보호된 프로퍼티들

프로퍼티 타입 설명
$instance singleton instance

공개 메소드들

메소드 설명
getInstance ( ) : static Get instance
setInstance ( mixed $instance ) : void Set or replace instance

보호된 메소드들

메소드 설명
__clone ( ) Disabled by access level
__construct ( ) Disabled by access level
initInstance ( ) : static Initialization of class instance

메소드 상세

__clone() 보호된 메소드

Disabled by access level
protected __clone ( )

__construct() 보호된 메소드

Disabled by access level
protected __construct ( )

getInstance() 공개 정적인 메소드

Get instance
public static getInstance ( ) : static
리턴 static

initInstance() 보호된 정적인 메소드

Initialization of class instance
protected static initInstance ( ) : static
리턴 static

setInstance() 공개 정적인 메소드

Set or replace instance
public static setInstance ( mixed $instance ) : void
$instance mixed
리턴 void

프로퍼티 상세

$instance 보호되어 있는 정적으로 프로퍼티

singleton instance
protected static $instance