Files
kiri-core/HttpServer/IInterface/Task.php
T

29 lines
326 B
PHP
Raw Normal View History

2020-08-31 01:27:08 +08:00
<?php
2020-10-29 18:17:25 +08:00
declare(strict_types=1);
2020-08-31 01:27:08 +08:00
namespace HttpServer\IInterface;
interface Task
{
2020-09-08 15:41:57 +08:00
/**
* @return array
*/
2020-12-14 14:32:22 +08:00
public function getParams(): array;
2020-08-31 01:27:08 +08:00
2020-09-08 15:41:57 +08:00
/**
* @param array $params
* @return $this
*/
2020-12-14 14:32:22 +08:00
public function setParams(array $params): static;
2020-09-08 15:30:21 +08:00
2020-09-08 15:41:57 +08:00
/**
2020-12-14 15:34:59 +08:00
* @return mixed
2020-09-08 15:41:57 +08:00
*/
2020-12-14 15:34:59 +08:00
public function onHandler(): mixed;
2020-08-31 01:27:08 +08:00
}