@@ 8-52 (lines=45) @@ | ||
5 | use Exception; |
|
6 | use Weew\Http\IHttpResponse; |
|
7 | ||
8 | abstract class Report implements IReport { |
|
9 | /** |
|
10 | * @param IHttpResponse $response |
|
11 | * |
|
12 | * @return mixed |
|
13 | * @throws Exception |
|
14 | */ |
|
15 | public static function fromHttpResponse(IHttpResponse $response) { |
|
16 | throw new Exception(s( |
|
17 | 'Method "%s::fromHttpResponse" is not implemented yet.', get_called_class() |
|
18 | )); |
|
19 | } |
|
20 | ||
21 | /** |
|
22 | * @return IHttpResponse |
|
23 | * @throws Exception |
|
24 | */ |
|
25 | public function toHttpResponse() { |
|
26 | throw new Exception(s( |
|
27 | 'Method "%s::toHttpResponse" is not implemented yet.', get_called_class() |
|
28 | )); |
|
29 | } |
|
30 | ||
31 | /** |
|
32 | * @param array $array |
|
33 | * |
|
34 | * @return mixed |
|
35 | * @throws Exception |
|
36 | */ |
|
37 | public static function fromArray(array $array) { |
|
38 | throw new Exception(s( |
|
39 | 'Method "%s::fromArray" is not implemented yet.', get_called_class() |
|
40 | )); |
|
41 | } |
|
42 | ||
43 | /** |
|
44 | * @return array |
|
45 | * @throws Exception |
|
46 | */ |
|
47 | public function toArray() { |
|
48 | throw new Exception(s( |
|
49 | 'Method "%s::toArray" is not implemented yet.', get_called_class() |
|
50 | )); |
|
51 | } |
|
52 | } |
|
53 |
@@ 9-55 (lines=47) @@ | ||
6 | use Weew\Http\IHttpRequest; |
|
7 | use Weew\Url\IUrl; |
|
8 | ||
9 | abstract class Task implements ITask { |
|
10 | /** |
|
11 | * @param IHttpRequest $request |
|
12 | * |
|
13 | * @return mixed |
|
14 | * @throws Exception |
|
15 | */ |
|
16 | public static function fromHttpRequest(IHttpRequest $request) { |
|
17 | throw new Exception(s( |
|
18 | 'Method "%s::fromHttpRequest" is not implemented yet.', get_called_class() |
|
19 | )); |
|
20 | } |
|
21 | ||
22 | /** |
|
23 | * @param IUrl $url |
|
24 | * |
|
25 | * @return IHttpRequest |
|
26 | * @throws Exception |
|
27 | */ |
|
28 | public function toHttpRequest(IUrl $url) { |
|
29 | throw new Exception(s( |
|
30 | 'Method "%s::toHttpRequest" is not implemented yet.', get_called_class() |
|
31 | )); |
|
32 | } |
|
33 | ||
34 | /** |
|
35 | * @param array $array |
|
36 | * |
|
37 | * @return mixed |
|
38 | * @throws Exception |
|
39 | */ |
|
40 | public static function fromArray(array $array) { |
|
41 | throw new Exception(s( |
|
42 | 'Method "%s::fromArray" is not implemented yet.', get_called_class() |
|
43 | )); |
|
44 | } |
|
45 | ||
46 | /** |
|
47 | * @return array |
|
48 | * @throws Exception |
|
49 | */ |
|
50 | public function toArray() { |
|
51 | throw new Exception(s( |
|
52 | 'Method "%s::toArray" is not implemented yet.', get_called_class() |
|
53 | )); |
|
54 | } |
|
55 | } |
|
56 |