for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Version package.
*
* Copyright (c) Nikola Posa <[email protected]>
* For full copyright and license information, please refer to the LICENSE file,
* located at the package root folder.
*/
namespace Version\Exception;
* @author Nikola Posa <[email protected]>
class InvalidVersionStringException extends \DomainException implements Exception
{
* @var string
protected $versionString;
public static function forVersionString($versionString)
$exception = new self(sprintf("Version string '%s' is not valid and cannot be parsed", $versionString));
$exception->versionString = $versionString;
return $exception;
}
public function getVersionString()
return $this->versionString;