StreamReaderFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getReader() 0 3 1
1
<?php
2
3
namespace Gocobachi\Compressy\Resource\Reader\Stream;
4
5
use Gocobachi\Compressy\Resource\Resource as ZippyResource;
6
use Gocobachi\Compressy\Resource\ResourceReader;
7
use Gocobachi\Compressy\Resource\ResourceReaderFactory;
8
9
class StreamReaderFactory implements ResourceReaderFactory
10
{
11
    /**
12
     * @param ZippyResource $resource
13
     * @param string        $context
14
     *
15
     * @return ResourceReader
16
     */
17
    public function getReader(ZippyResource $resource, $context)
18
    {
19
        return new StreamReader($resource);
20
    }
21
}
22