gnusocial.rocks/soc/2020/daily_report/archive/app/src/SortMethods/Type.php

21 lines
332 B
PHP

<?php
namespace App\SortMethods;
use Symfony\Component\Finder\Finder;
class Type extends SortMethod
{
/**
* Sory by file type.
*
* @param \Symfony\Component\Finder\Finder $finder
*
* @return void
*/
public function __invoke(Finder $finder): void
{
$finder->sortByType();
}
}