public function __construct($file, $content_type, $download_name = null) { # If the download_name is null, the download name becomes the file # name without any directory names before it $this->download_name = $download_name == null ? basename($file) : $download_name; parent::__construct($file, $content_type); }
public function __construct($file, $mime, $code) { parent::__construct($file, $mime, $code); }
public function __construct($file, HTTPCode $code) { parent::__construct($file); $this->code = $code; }