File tree Expand file tree Collapse file tree 3 files changed +25
-4
lines changed
src/phpDocumentor/Reflection Expand file tree Collapse file tree 3 files changed +25
-4
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+ declare (strict_types=1 );
3
+
4
+ /**
5
+ * This file is part of phpDocumentor.
6
+ *
7
+ * For the full copyright and license information, please view the LICENSE
8
+ * file that was distributed with this source code.
9
+ *
10
+ * @copyright 2010-2018 Mike van Riel<mike@phpdoc.org>
11
+ * @license http://www.opensource.org/licenses/mit-license.php MIT
12
+ * @link http://phpdoc.org
13
+ */
14
+
15
+ namespace phpDocumentor \Reflection \Middleware ;
16
+
17
+ /**
18
+ * Commands are used by Middleware
19
+ */
20
+ interface Command
21
+ {
22
+ }
Original file line number Diff line number Diff line change @@ -22,9 +22,7 @@ interface Middleware
22
22
/**
23
23
* Executes this middle ware class.
24
24
*
25
- * @param object $command
26
- *
27
25
* @return object
28
26
*/
29
- public function execute ($ command , callable $ next );
27
+ public function execute (Command $ command , callable $ next );
30
28
}
Original file line number Diff line number Diff line change 15
15
namespace phpDocumentor \Reflection \Php \Factory \File ;
16
16
17
17
use phpDocumentor \Reflection \File ;
18
+ use phpDocumentor \Reflection \Middleware \Command ;
18
19
use phpDocumentor \Reflection \Php \StrategyContainer ;
19
20
20
21
/**
21
22
* File Create command is used by the File Factory Strategy.
22
23
* The command is passed to the registered middle ware classes.
23
24
*/
24
- final class CreateCommand
25
+ final class CreateCommand implements Command
25
26
{
26
27
/**
27
28
* @var File
You can’t perform that action at this time.
0 commit comments