Completed
Push — compiler ( 5bd2e3...2cb518 )
by Akihito
09:43
created

App::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 9.8333
c 0
b 0
f 0
cc 1
nc 1
nop 5
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BEAR\Package\Compiler\Module;
6
7
use BEAR\Resource\ResourceInterface;
8
use BEAR\Sunday\Extension\Application\AppInterface;
9
use BEAR\Sunday\Extension\Error\ThrowableHandlerInterface;
10
use BEAR\Sunday\Extension\Router\RouterInterface;
11
use BEAR\Sunday\Extension\Transfer\HttpCacheInterface;
12
use BEAR\Sunday\Extension\Transfer\TransferInterface;
13
14
final class App implements AppInterface
15
{
16
    /** @var HttpCacheInterface */
17
    public $httpCache;
18
19
    /** @var RouterInterface */
20
    public $router;
21
22
    /** @var TransferInterface */
23
    public $responder;
24
25
    /** @var ResourceInterface */
26
    public $resource;
27
28
    /** @var ThrowableHandlerInterface */
29
    public $throwableHandler;
30
31
    public function __construct(
32
        HttpCacheInterface $httpCache,
33
        RouterInterface $router,
34
        TransferInterface $responder,
35
        ResourceInterface $resource,
36
        ThrowableHandlerInterface $throwableHandler
37
    ) {
38
        $this->httpCache = $httpCache;
39
        $this->router = $router;
40
        $this->responder = $responder;
41
        $this->resource = $resource;
42
        $this->throwableHandler = $throwableHandler;
43
    }
44
}
45