StreamSynopsis::process()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 9.9666
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
3
namespace TheIconic\Synopsis\Resource;
4
5
use TheIconic\Synopsis\ResourceSynopsis;
6
7
/**
8
 * represents a stream resource
9
 *
10
 * @package TheIconic\Synopsis\Object
11
 */
12
class StreamSynopsis extends ResourceSynopsis
13
{
14
    /**
15
     * @param $value
16
     * @param $depth
17
     */
18
    public function process($value, $depth)
19
    {
20
        parent::process($value, $depth);
21
22
        $meta = stream_get_meta_data($value);
23
24
        $this->value = $meta['uri'];
25
        $this->length = strlen($this->value);
26
    }
27
}
28