Completed
Pull Request — master (#163)
by
unknown
01:42
created

ZipFileStrategy   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getServiceNames() 0 7 1
A getFileExtension() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of Zippy.
5
 *
6
 * (c) Alchemy <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Alchemy\Zippy\FileStrategy;
13
14
class ZipFileStrategy extends AbstractFileStrategy
15
{
16
    /**
17
     * {@inheritdoc}
18
     */
19
    protected function getServiceNames()
20
    {
21
        return array(
22
            'Alchemy\\Zippy\\Adapter\\ZipAdapter',
23
            'Alchemy\\Zippy\\Adapter\\ZipExtensionAdapter'
24
        );
25
    }
26
27
    /**
28
     * {@inheritdoc}
29
     */
30
    public function getFileExtension()
31
    {
32
        return 'zip';
33
    }
34
}
35