RequestContentHelper   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 7
c 1
b 0
f 1
dl 0
loc 18
ccs 5
cts 5
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php /** @noinspection PhpMissingParentConstructorInspection */
2
3
namespace DMT\Aura\Psr\Helpers;
4
5
use Aura\Web\Request\Content as RequestContent;
6
7
/**
8
 * Class RequestContentHelper
9
 *
10
 * @package DMT\Aura\Psr\Helpers
11
 */
12
class RequestContentHelper extends RequestContent implements PropertyAccessorInterface
13
{
14
    use PropertyAccessorTrait {
15
        PropertyAccessorTrait::__construct as parentConstruct;
16
    }
17
18
    /**
19
     * RequestContentHelper constructor.
20
     *
21
     * @param object|RequestContent $object
22
     */
23 3
    public function __construct(RequestContent $object)
24
    {
25 3
        $object->value = null;
26 3
        $object->decoders = ['application/octet-stream' => 'strval'];
27 3
        $object->type = 'application/octet-stream';
28
29 3
        $this->parentConstruct($object);
30
    }
31
}