TGzFileStrategy.php 673 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /*
  3. * This file is part of Zippy.
  4. *
  5. * (c) Alchemy <info@alchemy.fr>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Alchemy\Zippy\FileStrategy;
  11. class TGzFileStrategy extends AbstractFileStrategy
  12. {
  13. /**
  14. * {@inheritdoc}
  15. */
  16. protected function getServiceNames()
  17. {
  18. return array(
  19. 'Alchemy\\Zippy\\Adapter\\GNUTar\\TarGzGNUTarAdapter',
  20. 'Alchemy\\Zippy\\Adapter\\BSDTar\\TarGzBSDTarAdapter'
  21. );
  22. }
  23. /**
  24. * {@inheritdoc}
  25. */
  26. public function getFileExtension()
  27. {
  28. return 'tgz';
  29. }
  30. }