public static function instance() { if (!self::$instance instanceof LeaveStateManager) { self::$instance = new LeaveStateManager(); } return self::$instance; }
public function getLeaveStateManager() { if (is_null($this->leaveStateManager)) { $this->leaveStateManager = LeaveStateManager::instance(); } return $this->leaveStateManager; }