2020-03-10 20:12:55 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-immutable
|
|
|
|
*/
|
|
|
|
class DateTimeImmutable implements DateTimeInterface
|
|
|
|
{
|
|
|
|
public function __construct(string $time = "now", DateTimeZone $tz = null) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-immutable
|
|
|
|
*/
|
|
|
|
class DateTimeZone
|
|
|
|
{
|
|
|
|
public function __construct(string $tz) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
interface Throwable
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
|
|
|
*/
|
2020-04-18 04:08:26 +02:00
|
|
|
public final function getMessage() : string;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
2020-04-18 16:39:23 +02:00
|
|
|
*
|
|
|
|
* @return int|string https://www.php.net/manual/en/throwable.getcode.php
|
2020-04-18 04:08:26 +02:00
|
|
|
*/
|
2020-04-18 16:39:23 +02:00
|
|
|
public final function getCode();
|
2020-04-18 04:08:26 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
|
|
|
*/
|
|
|
|
public final function getFile() : string;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
|
|
|
*/
|
|
|
|
public final function getLine() : int;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
|
|
|
*/
|
|
|
|
public final function getTrace() : array;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
|
|
|
*/
|
|
|
|
public final function getPrevious() : ?Throwable;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
|
|
|
*/
|
|
|
|
public final function getTraceAsString() : string;
|
2020-03-10 20:12:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
class Exception implements Throwable
|
|
|
|
{
|
2020-03-11 20:43:15 +01:00
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
2020-03-11 22:41:05 +01:00
|
|
|
protected $message = '';
|
2020-03-11 20:43:15 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
*/
|
2020-03-11 22:41:05 +01:00
|
|
|
protected $code = 0;
|
2020-03-11 20:43:15 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
2020-03-11 22:41:05 +01:00
|
|
|
protected $file = '';
|
2020-03-11 20:43:15 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
*/
|
2020-03-11 22:41:05 +01:00
|
|
|
protected $line = 0;
|
2020-03-11 20:43:15 +01:00
|
|
|
|
2020-03-10 20:12:55 +01:00
|
|
|
/**
|
|
|
|
* @psalm-external-mutation-free
|
|
|
|
* @param string $message
|
|
|
|
* @param int $code
|
|
|
|
* @param Throwable $previous
|
|
|
|
*/
|
2020-03-11 22:41:05 +01:00
|
|
|
public function __construct($message = "", $code = 0, Throwable $previous = null) {}
|
2020-03-10 20:12:55 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
|
|
|
*/
|
|
|
|
public final function getMessage() : string {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
2020-04-18 16:39:23 +02:00
|
|
|
*
|
|
|
|
* @return int|string https://www.php.net/manual/en/throwable.getcode.php
|
2020-03-10 20:12:55 +01:00
|
|
|
*/
|
2020-04-18 16:39:23 +02:00
|
|
|
public final function getCode() {}
|
2020-03-10 20:12:55 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
|
|
|
*/
|
2020-04-18 04:08:26 +02:00
|
|
|
public final function getFile(): string {}
|
2020-03-10 20:12:55 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
|
|
|
*/
|
2020-04-18 04:08:26 +02:00
|
|
|
public final function getLine(): int {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
|
|
|
*/
|
|
|
|
public final function getTrace() : array {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
|
|
|
*/
|
|
|
|
public final function getPrevious() : ?Throwable {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
|
|
|
*/
|
|
|
|
public final function getTraceAsString() : string {}
|
2020-03-10 20:12:55 +01:00
|
|
|
}
|
2020-03-22 00:11:23 +01:00
|
|
|
|
|
|
|
class Error implements Throwable
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $message = '';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
*/
|
|
|
|
protected $code = 0;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $file = '';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
*/
|
|
|
|
protected $line = 0;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-external-mutation-free
|
|
|
|
* @param string $message
|
|
|
|
* @param int $code
|
|
|
|
* @param Throwable $previous
|
|
|
|
*/
|
|
|
|
public function __construct($message = "", $code = 0, Throwable $previous = null) {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
|
|
|
*/
|
|
|
|
public final function getMessage() : string {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
|
|
|
*/
|
2020-04-18 04:08:26 +02:00
|
|
|
public final function getCode(): int {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
|
|
|
*/
|
|
|
|
public final function getFile(): string {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
|
|
|
*/
|
|
|
|
public final function getLine(): int{}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
|
|
|
*/
|
|
|
|
public final function getTrace() : array {}
|
2020-03-22 00:11:23 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
|
|
|
*/
|
2020-04-18 04:08:26 +02:00
|
|
|
public final function getPrevious() : ?Throwable {}
|
2020-03-22 00:11:23 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @psalm-mutation-free
|
|
|
|
*/
|
2020-04-18 04:08:26 +02:00
|
|
|
public final function getTraceAsString() : string {}
|
2020-03-22 00:11:23 +01:00
|
|
|
}
|