Completed
Push — 1.x ( d7de5d...04d644 )
by Akihito
01:58
created

ErrorPage   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 19
c 0
b 0
f 0
ccs 6
cts 6
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A __toString() 0 6 1
1
<?php
2
/**
3
 * This file is part of the BEAR.Package package.
4
 *
5
 * @license http://opensource.org/licenses/MIT MIT
6
 */
7
namespace BEAR\Package\Provide\Error;
8
9
use BEAR\Resource\ResourceObject;
10
11
/**
12
 * @deprecated
13
 */
14
class ErrorPage extends ResourceObject
15
{
16
    /**
17
     * @var string
18
     */
19
    private $postBody;
20
21 1
    public function __construct($postBody)
22
    {
23 1
        $this->postBody = $postBody;
24 1
    }
25
26 1
    public function __toString()
27
    {
28 1
        $string = parent::__toString();
29
30 1
        return $string . $this->postBody;
31
    }
32
}
33