public function allow($type)
    {
        if (!is_array($type)) {
            $type = func_get_args();
        }
        $this->allowedTypes = implode(',', $type);

        return $this;
    }
public function allow($type)
    {
        if (!is_array($type)) {
            $type = func_get_args();
        }
        $this->allowedTypes = implode(',', $type);

        return $this;
    }
public function allow ( $ type ) { if ( ! is_array ( $ type ) ) { $ type = func_get_args ( ) ; } $ this -> allowedTypes = implode ( ',' , $ type ) ; return $ this ; }
Allow only specific types.

@param array|string ...$type can be an array or multiple string parameters

@return Uploadable
Allow only specific types .