This commit is contained in:
Kilian Hofmann
2021-06-01 19:56:34 +02:00
parent e74df463f2
commit 499abe195e
284 changed files with 55166 additions and 0 deletions
@@ -0,0 +1,5 @@
<?php
class ArithmeticError extends Error
{
}
@@ -0,0 +1,5 @@
<?php
class AssertionError extends Error
{
}
@@ -0,0 +1,5 @@
<?php
class DivisionByZeroError extends Error
{
}
@@ -0,0 +1,5 @@
<?php
class Error extends Exception
{
}
@@ -0,0 +1,5 @@
<?php
class ParseError extends Error
{
}
@@ -0,0 +1,23 @@
<?php
interface SessionUpdateTimestampHandlerInterface
{
/**
* Checks if a session identifier already exists or not.
*
* @param string $key
*
* @return bool
*/
public function validateId($key);
/**
* Updates the timestamp of a session when its data didn't change.
*
* @param string $key
* @param string $val
*
* @return bool
*/
public function updateTimestamp($key, $val);
}
@@ -0,0 +1,5 @@
<?php
class TypeError extends Error
{
}