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

TarBz2GNUTarAdapter::doAdd()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
1
<?php
2
3
namespace Alchemy\Zippy\Adapter\GNUTar;
4
5
use Alchemy\Zippy\Adapter\Resource\ResourceInterface;
6
use Alchemy\Zippy\Exception\NotSupportedException;
7
8
class TarBz2GNUTarAdapter extends TarGNUTarAdapter
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