TBz2FileStrategy   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getServiceNames() 0 5 1
A getFileExtension() 0 3 1
1
<?php
2
/*
3
 * This file is part of Compressy.
4
 *
5
 * (c) Alchemy <[email protected]>
6
 * (c) Miguel Gocobachi <[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
namespace Gocobachi\Compressy\FileStrategy;
12
13
use Gocobachi\Compressy\Adapter\BSDTar\TarBz2BSDTarAdapter;
14
use Gocobachi\Compressy\Adapter\GNUTar\TarBz2GNUTarAdapter;
15
16
class TBz2FileStrategy extends AbstractFileStrategy
17
{
18
    /**
19
     * {@inheritdoc}
20
     */
21
    protected function getServiceNames()
22
    {
23
        return [
24
            TarBz2GNUTarAdapter::class,
25
            TarBz2BSDTarAdapter::class,
26
        ];
27
    }
28
29
    /**
30
     * {@inheritdoc}
31
     */
32
    public function getFileExtension()
33
    {
34
        return 'tbz2';
35
    }
36
}
37