public function __construct($path = null, $id = null) { if (null === $path) { $path = tempnam(sys_get_temp_dir(), 'bl_'); if (file_exists($path)) { unlink($path); } } $this->path = $path; $this->id = $id; }