-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEndMiddleware.php
More file actions
50 lines (46 loc) · 864 Bytes
/
EndMiddleware.php
File metadata and controls
50 lines (46 loc) · 864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php declare(strict_types=1);
/**
* Part of Windwalker project.
*
* @copyright Copyright (C) 2019 LYRASOFT.
* @license LGPL-2.0-or-later
*/
namespace Windwalker\Middleware;
/**
* End Middleware, this object will not do anything.
*
* @since 2.0
*/
class EndMiddleware extends AbstractMiddleware
{
/**
* Set next middleware.
*
* @param object $callable The middleware object.
*
* @return EndMiddleware Return self to support chaining.
*/
public function setNext($callable)
{
return $this;
}
/**
* Get next middleware.
*
* @return mixed
*/
public function getNext()
{
return null;
}
/**
* Call next middleware.
*
* @param array $data
*
* @return mixed
*/
public function execute($data = null)
{
}
}