Completed
Push — master ( 348d1d...2a1736 )
by Pol
11:11
created

StreamResource   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 11
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A hash() 0 5 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace drupol\valuewrapper\Resource;
6
7
class StreamResource extends ResourceValue
8
{
9
    /**
10
     * {@inheritdoc
11
     */
12
    public function hash(): string {
13
        $info = \implode('', \stream_get_meta_data($this->get()));
14
15
        return $this->doHash(\get_resource_type($this->get()) . $info);
16
    }
17
}
18