Add getID function to the simplefile implementation

Sometimes it is useful to get the actual fileid

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2021-03-08 14:59:36 +01:00 committed by backportbot[bot]
parent 7c21fba61f
commit 7059b0b21f
1 changed files with 4 additions and 0 deletions

View File

@ -180,4 +180,8 @@ class SimpleFile implements ISimpleFile {
public function write() {
return $this->file->fopen('w');
}
public function getId(): int {
return $this->file->getId();
}
}