Completed
Pull Request — master (#132)
by
unknown
06:43 queued 04:56
created

TarBz2BSDTarAdapter   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A doAdd() 0 4 1
A getLocalOptions() 0 4 1
1
<?php
2
3
namespace Alchemy\Zippy\Adapter\BSDTar;
4
5
use Alchemy\Zippy\Adapter\Resource\ResourceInterface;
6
use Alchemy\Zippy\Exception\NotSupportedException;
7
8
class TarBz2BSDTarAdapter extends TarBSDTarAdapter
9
{
10
    /**
11
     * @inheritdoc
12
     */
13
    protected function doAdd(ResourceInterface $resource, $files, $recursive)
14
    {
15
        throw new NotSupportedException('Updating a compressed tar archive is not supported.');
16
    }
17
18
    /**
19
     * @inheritdoc
20
     */
21
    protected function getLocalOptions()
22
    {
23
        return array('--bzip2');
24
    }
25
}
26