Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2/**
3 * Pop PHP Framework (http://www.popphp.org/)
4 *
5 * @link       https://github.com/popphp/popphp-framework
6 * @author     Nick Sagona, III <dev@nolainteractive.com>
7 * @copyright  Copyright (c) 2009-2024 NOLA Interactive, LLC. (http://www.nolainteractive.com)
8 * @license    http://www.popphp.org/license     New BSD License
9 */
10
11/**
12 * @namespace
13 */
14namespace Pop\Module;
15
16use Pop\Application;
17
18/**
19 * Pop router interface
20 *
21 * @category   Pop
22 * @package    Pop\Module
23 * @author     Nick Sagona, III <dev@nolainteractive.com>
24 * @copyright  Copyright (c) 2009-2024 NOLA Interactive, LLC. (http://www.nolainteractive.com)
25 * @license    http://www.popphp.org/license     New BSD License
26 * @version    4.2.0
27 */
28interface ModuleInterface
29{
30
31    /**
32     * Get application
33     *
34     * @return Application
35     */
36    public function application(): Application;
37
38    /**
39     * Determine if the module has been registered with an application object
40     *
41     * @return bool
42     */
43    public function isRegistered(): bool;
44
45    /**
46     * Register the module
47     *
48     * @param  Application $application
49     * @return ModuleInterface
50     */
51    public function register(Application $application): ModuleInterface;
52
53}