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

StreamResource::hash()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
nc 1
cc 1
nop 0
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