Astrotomic/laravel-backuplay

View on GitHub
src/Backuplay/Strategies/ZipExtensionFileStrategy.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Astrotomic\Backuplay\Strategies;

use Alchemy\Zippy\Adapter\ZipExtensionAdapter;
use Alchemy\Zippy\FileStrategy\AbstractFileStrategy;

class ZipExtensionFileStrategy extends AbstractFileStrategy
{
    /**
     * {@inheritdoc}
     */
    protected function getServiceNames()
    {
        return [
            ZipExtensionAdapter::class,
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function getFileExtension()
    {
        return 'ziphp';
    }
}