/** @var string Path to file */
protected $path;
- /** @var string File SHA-1 in base 36 */
+ /** @var string File SHA-1 in base 36 */
protected $sha1Base36;
/**
* Sets up the file object
*
* @param string $path Path to temporary file on local disk
- * @throws MWException
*/
public function __construct( $path ) {
- if ( FileBackend::isStoragePath( $path ) ) {
- throw new MWException( __METHOD__ . " given storage path `$path`." );
- }
$this->path = $path;
}
/**
* Returns the file system path
*
- * @return String
+ * @return string
*/
public function getPath() {
return $this->path;