for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Quantum PHP Framework
*
* An open source software development framework for PHP
* @package Quantum
* @author Arman Ag. <[email protected]>
* @copyright Copyright (c) 2018 Softberg LLC (https://softberg.org)
* @link http://quantum.softberg.org/
* @since 2.5.0
*/
namespace Quantum\Exceptions;
* Class SessionException
* @package Quantum\Exceptions
class SessionException extends \Exception
{
* Session start error message
const SESSION_NOT_STARTED = 'Can not start the session';
* Session destroy error message
const SESSION_NOT_DESTROYED = 'Can not destroy the session';
* @return \Quantum\Exceptions\SessionException
public static function sessionNotStarted(): SessionException
return new static(self::SESSION_NOT_STARTED, E_WARNING);
}
public static function sessionNotDestroyed(): SessionException
return new static(self::SESSION_NOT_DESTROYED, E_WARNING);