TBz2FileStrategy::getServiceNames()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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