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 3c1402c2d9
commit 147134fc31
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();
}
}