Files
2026-07-01 16:44:17 +03:00

41 lines
786 B
PHP

<?php namespace ZN\Filesystem;
/**
* ZN PHP Web Framework
*
* "Simplicity is the ultimate sophistication." ~ Da Vinci
*
* @package ZN
* @license MIT [http://opensource.org/licenses/MIT]
* @author Ozan UYKUN [ozan@znframework.com]
*/
use ZN\Filesystem;
class Extension
{
/**
* Get Extension
*
* @param string $file
* @param bool $dot = false
*
* @return string
*/
public static function get(string $file, bool $dot = false) : string
{
return Filesystem::getExtension($file, $dot);
}
/**
* Remove Extension
*
* @param string $file
*
* @return string
*/
public static function remove(string $file) : string
{
return Filesystem::removeExtension($file);
}
}