Passed
Push — master ( 448c6e...d87c6c )
by Glynn
09:54 queued 08:08
created

Route::get_middleware()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 2
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * Route Module
7
 *
8
 * @since 0.1.0
9
 * @author Glynn Quelch <[email protected]>
10
 * @license http://www.opensource.org/licenses/mit-license.html  MIT License
11
 * @package PinkCrab\Route
12
 */
13
14
namespace PinkCrab\Route\Module;
15
16
use PinkCrab\Loader\Hook_Loader;
17
use PinkCrab\Perique\Interfaces\Module;
18
use PinkCrab\Perique\Application\App_Config;
19
use PinkCrab\Perique\Interfaces\DI_Container;
20
21
class Route implements Module {
22
23
	/**
24
	 * Return the middleware class name.
25
	 *
26
	 * @return string|null
27
	 */
28
	public function get_middleware(): ?string {
29
		return Route_Middleware::class;
30
	}
31
32
	## Unused methods
33
34
	/** @inheritDoc */
35
	public function pre_register( App_Config $config, Hook_Loader $loader, DI_Container $di_container ): void {} // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundInImplementedInterfaceBeforeLastUsed
36
37
	/** @inheritDoc */
38
	public function post_register( App_Config $config, Hook_Loader $loader, DI_Container $di_container ): void {} // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundInImplementedInterfaceBeforeLastUsed
39
40
	/** @inheritDoc */
41
	public function pre_boot( App_Config $config, Hook_Loader $loader, DI_Container $di_container ): void {} // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundInImplementedInterfaceBeforeLastUsed
42
}
43