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

ErrorPage::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 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