public function setClientFilename($file_name)
    {
        if (is_string($file_name)) {
            $this->client_file_name = $file_name;
            $_ext = $this->guessExtension();
            if (!empty($_ext) && !strstr($file_name, $_ext))
                $this->client_file_name .= '.'.$_ext;
        } else {
            throw new InvalidArgumentException(
                sprintf('Client name of a file must be a string (got "%s")!', gettype($file_name))
            );
        }
    }
public function setClientFilename($file_name)
    {
        if (is_string($file_name)) {
            $this->client_file_name = $file_name;
            $_ext = $this->guessExtension();
            if (!empty($_ext) && !strstr($file_name, $_ext))
                $this->client_file_name .= '.'.$_ext;
        } else {
            throw new InvalidArgumentException(
                sprintf('Client name of a file must be a string (got "%s")!', gettype($file_name))
            );
        }
    }
public function setClientFilename ( $ file_name ) { if ( is_string ( $ file_name ) ) { $ this -> client_file_name = $ file_name ; $ _ext = $ this -> guessExtension ( ) ; if ( ! empty ( $ _ext ) && ! strstr ( $ file_name , $ _ext ) ) $ this -> client_file_name .= '.' . $ _ext ; } else { throw new InvalidArgumentException ( sprintf ( 'Client name of a file must be a string (got "%s")!' , gettype ( $ file_name ) ) ) ; } }
Set the client filename

@param   string  $file_name  The client filename for the file
@return  void
@throws   \CarteBlanche\Exception\InvalidArgumentException if the file name is not a string
Set the client filename