Completed
Push — 1.x ( ed7876...cc7bb3 )
by Akihito
03:45 queued 01:48
created

AbstractApp::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1.0046

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 11
ccs 5
cts 6
cp 0.8333
rs 9.4285
cc 1
eloc 9
nc 1
nop 4
crap 1.0046
1
<?php
2
/**
3
 * This file is part of the BEAR.Sunday package
4
 *
5
 * @license http://opensource.org/licenses/MIT MIT
6
 */
7
namespace BEAR\Sunday\Extension\Application;
8
9
use BEAR\Resource\ResourceInterface;
10
use BEAR\Sunday\Extension\Error\ErrorInterface;
11
use BEAR\Sunday\Extension\Router\RouterInterface;
12
use BEAR\Sunday\Extension\Transfer\TransferInterface;
13
14
class AbstractApp implements AppInterface
15
{
16
    /**
17
     * @var RouterInterface
18
     */
19
    public $router;
20
21
    /**
22
     * @var TransferInterface
23
     */
24
    public $responder;
25
26
    /**
27
     * @var ResourceInterface
28
     */
29
    public $resource;
30
31
    /**
32
     * @var ErrorInterface
33
     */
34
    public $error;
35
36
    /**
37
     * @param RouterInterface   $router
38
     * @param TransferInterface $responder
39
     * @param ResourceInterface $resource
40
     * @param ErrorInterface    $error
41
     */
42 2
    public function __construct(
43
        RouterInterface $router,
44
        TransferInterface $responder,
45
        ResourceInterface $resource,
46
        ErrorInterface $error
47
    ) {
48 2
        $this->router = $router;
49 2
        $this->responder = $responder;
50 2
        $this->resource = $resource;
51 2
        $this->error = $error;
52
    }
53
}
54