Exemplo n.º 1
0
 public static function instance()
 {
     if (!self::$instance instanceof LeaveStateManager) {
         self::$instance = new LeaveStateManager();
     }
     return self::$instance;
 }
Exemplo n.º 2
0
 public function getLeaveStateManager()
 {
     if (is_null($this->leaveStateManager)) {
         $this->leaveStateManager = LeaveStateManager::instance();
     }
     return $this->leaveStateManager;
 }