Completed
Push — PSR-11-2 ( a5ad88...7f5041 )
by Nikolaos
03:59
created

Memory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 75%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 12
c 0
b 0
f 0
ccs 3
cts 4
cp 0.75
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
/**
4
 * This file is part of the Phalcon Framework.
5
 *
6
 * (c) Phalcon Team <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE.txt
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace Phalcon\Http\Message\Stream;
15
16
use Phalcon\Http\Message\Stream;
17
18
/**
19
 * Describes a data stream from "php://memory"
20
 *
21
 * Typically, an instance will wrap a PHP stream; this interface provides
22
 * a wrapper around the most common operations, including serialization of
23
 * the entire stream to a string.
24
 */
25
class Memory extends Stream
26
{
27
    /**
28
     * Memory constructor.
29
     *
30
     * @param string $mode
31
     */
32 4
    public function __construct(string $mode = "rb")
33
    {
34 4
        parent::__construct("php://memory", $mode);
35 4
    }
36
}
37