pharext\Tempname::__construct PHP Метод

__construct() публичный Метод

public __construct ( string $prefix, string $suffix = null )
$prefix string uniqid() prefix
$suffix string e.g. file extension
    public function __construct($prefix, $suffix = null)
    {
        $temp = sys_get_temp_dir() . "/pharext-" . $this->getUser();
        if (!is_dir($temp) && !mkdir($temp, 0700, true)) {
            throw new Exception();
        }
        $this->name = $temp . "/" . uniqid($prefix) . $suffix;
    }