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

TGzFileStrategy::getServiceNames()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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 TGzFileStrategy extends AbstractFileStrategy
15
{
16
    /**
17
     * {@inheritdoc}
18
     */
19
    protected function getServiceNames()
20
    {
21
        return array(
22
            'Alchemy\\Zippy\\Adapter\\GNUTar\\TarGzGNUTarAdapter',
23
            'Alchemy\\Zippy\\Adapter\\BSDTar\\TarGzBSDTarAdapter'
24
        );
25
    }
26
27
    /**
28
     * {@inheritdoc}
29
     */
30
    public function getFileExtension()
31
    {
32
        return 'tgz';
33
    }
34
}
35