for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* GpsLab component.
*
* @author Peter Gribanov <[email protected]>
* @copyright Copyright (c) 2011, Peter Gribanov
* @license http://opensource.org/licenses/MIT
*/
namespace GpsLab\Component\Sitemap\Stream\Exception;
class StreamStateException extends \RuntimeException
{
* @return static
final public static function alreadyOpened()
return new static('Stream is already opened.');
}
final public static function alreadyClosed()
return new static('Stream is already closed.');
final public static function notOpened()
return new static('Stream not opened.');
final public static function notReady()
return new static('Stream not ready.');
final public static function notClosed()
return new static('Stream not closed.');