Passed
Pull Request — master (#38)
by Melech
05:50 queued 01:43
created

Component::getContainerContextAliases()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Valkyrja Framework package.
7
 *
8
 * (c) Melech Mizrachi <[email protected]>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Valkyrja\Application\Support;
15
16
use Valkyrja\Container\Contract\Service;
17
use Valkyrja\Container\Support\Provider as ContainerProvider;
18
19
/**
20
 * Abstract Class Component.
21
 *
22
 * @author Melech Mizrachi
23
 */
24
abstract class Component
25
{
26
    /**
27
     * Get the component's container aliases.
28
     *
29
     * @return class-string[]
0 ignored issues
show
Documentation Bug introduced by
The doc comment class-string[] at position 0 could not be parsed: Unknown type name 'class-string' at position 0 in class-string[].
Loading history...
30
     */
31
    public static function getContainerAliases(): array
32
    {
33
        return [];
34
    }
35
36
    /**
37
     * Get the component's container services.
38
     *
39
     * @return class-string<Service>[]
0 ignored issues
show
Documentation Bug introduced by
The doc comment class-string<Service>[] at position 0 could not be parsed: Unknown type name 'class-string' at position 0 in class-string<Service>[].
Loading history...
40
     */
41
    public static function getContainerServices(): array
42
    {
43
        return [];
44
    }
45
46
    /**
47
     * Get the component's container service providers.
48
     *
49
     * @return class-string<ContainerProvider>[]
0 ignored issues
show
Documentation Bug introduced by
The doc comment class-string<ContainerProvider>[] at position 0 could not be parsed: Unknown type name 'class-string' at position 0 in class-string<ContainerProvider>[].
Loading history...
50
     */
51
    public static function getContainerProviders(): array
52
    {
53
        return [];
54
    }
55
56
    /**
57
     * Get the component's event listeners.
58
     *
59
     * @return class-string[]
0 ignored issues
show
Documentation Bug introduced by
The doc comment class-string[] at position 0 could not be parsed: Unknown type name 'class-string' at position 0 in class-string[].
Loading history...
60
     */
61
    public static function getEventListeners(): array
62
    {
63
        return [];
64
    }
65
66
    /**
67
     * Get the component's cli controllers.
68
     *
69
     * @return class-string[]
0 ignored issues
show
Documentation Bug introduced by
The doc comment class-string[] at position 0 could not be parsed: Unknown type name 'class-string' at position 0 in class-string[].
Loading history...
70
     */
71
    public static function getCliControllers(): array
72
    {
73
        return [];
74
    }
75
76
    /**
77
     * Get the component's http controllers.
78
     *
79
     * @return class-string[]
0 ignored issues
show
Documentation Bug introduced by
The doc comment class-string[] at position 0 could not be parsed: Unknown type name 'class-string' at position 0 in class-string[].
Loading history...
80
     */
81
    public static function getHttpControllers(): array
82
    {
83
        return [];
84
    }
85
86
    /**
87
     * Get the component's name.
88
     *
89
     * @return non-empty-string
0 ignored issues
show
Documentation Bug introduced by
The doc comment non-empty-string at position 0 could not be parsed: Unknown type name 'non-empty-string' at position 0 in non-empty-string.
Loading history...
90
     */
91
    abstract public static function getName(): string;
92
}
93