src/Filterer.php
public static function registerAlias($alias, callable $filter, bool $overwrite = false)
    {
        self::assertIfStringOrInt($alias);
        self::assertIfAliasExists($alias, $overwrite);
        self::$registeredFilterAliases[$alias] = $filter;
    }
public static function registerAlias($alias, callable $filter, bool $overwrite = false)
    {
        self::assertIfStringOrInt($alias);
        self::assertIfAliasExists($alias, $overwrite);
        self::$registeredFilterAliases[$alias] = $filter;
    }
public static function registerAlias ( $ alias , callable $ filter , bool $ overwrite = false ) { self :: assertIfStringOrInt ( $ alias ) ; self :: assertIfAliasExists ( $ alias , $ overwrite ) ; self :: $ registeredFilterAliases [ $ alias ] = $ filter ; }
Register a new alias with the Filterer

@param string|int $alias the alias to register
@param callable $filter the aliased callable filter
@param bool $overwrite Flag to overwrite existing alias if it exists

@return void

@throws \InvalidArgumentException if $alias was not a string or int
@throws Exception if $overwrite is false and $alias exists
Register a new alias with the Filterer