PHP 클래스 Crunz\Singleton

파일 보기 프로젝트 열기: lavary/crunz

보호된 프로퍼티들

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

공개 메소드들

메소드 설명
getInstance ( ) : mixed Return the instance of the class

비공개 메소드들

메소드 설명
__clone ( ) : void Private clone method to prevent cloning of the instance of the Singleton instance.
__wakeup ( ) : void Private unserialize method to prevent unserializing of the *Singleton* instance.

메소드 상세

getInstance() 공개 정적인 메소드

Return the instance of the class
public static getInstance ( ) : mixed
리턴 mixed

프로퍼티 상세

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

Class instance
protected static $instance