pharext\Tempdir::__construct PHP Method

__construct() public method

public __construct ( string $prefix )
$prefix string prefix to uniqid()
    public function __construct($prefix)
    {
        $temp = new Tempname($prefix);
        if (!is_dir($temp) && !mkdir($temp, 0700, true)) {
            throw new Exception("Could not create tempdir: " . error_get_last()["message"]);
        }
        parent::__construct($temp);
    }