public function alias(string $alias, string $type): TypeCastInterface
    {
        $copy = clone $this;
        $copy->aliases[$alias] = $type;

        return $copy;
    }
public function alias(string $alias, string $type): TypeCastInterface
    {
        $copy = clone $this;
        $copy->aliases[$alias] = $type;

        return $copy;
    }
public function alias ( string $ alias , string $ type ) : TypeCastInterface { $ copy = clone $ this ; $ copy -> aliases [ $ alias ] = $ type ; return $ copy ; }
Add a custom alias

@param string $alias
@param string $type
@return static
Add a custom alias