. */ namespace Doctrine\Common\Proxy\Exception; use UnexpectedValueException as BaseUnexpectedValueException; /** * Proxy Unexpected Value Exception. * * @link www.doctrine-project.org * @since 2.4 * @author Marco Pivetta */ class UnexpectedValueException extends BaseUnexpectedValueException implements ProxyException { /** * @return self */ public static function proxyDirectoryNotWritable() { return new self('Your proxy directory must be writable'); } /** * @param string $className * @param string $methodName * @param string $parameterName * @param \Exception $previous * * @return self */ public static function invalidParameterTypeHint($className, $methodName, $parameterName, \Exception $previous) { return new self( sprintf( 'The type hint of parameter "%s" in method "%s" in class "%s" is invalid.', $parameterName, $methodName, $className ), 0, $previous ); } }