misc: Add return types.

This commit is contained in:
Pol Dellaiera 2022-03-08 15:46:50 +01:00
parent 325ab0daf3
commit 6ddbf35a7b
No known key found for this signature in database
GPG Key ID: D476DFE9C67467CA

View File

@ -109,12 +109,12 @@ class StoredObject implements AsyncFileInterface, Document
return $this->id; return $this->id;
} }
public function getIv() public function getIv(): array
{ {
return $this->iv; return $this->iv;
} }
public function getKeyInfos() public function getKeyInfos(): array
{ {
return $this->keyInfos; return $this->keyInfos;
} }
@ -163,21 +163,21 @@ class StoredObject implements AsyncFileInterface, Document
return $this; return $this;
} }
public function setIv($iv) public function setIv(array $iv)
{ {
$this->iv = $iv; $this->iv = $iv;
return $this; return $this;
} }
public function setKeyInfos($keyInfos) public function setKeyInfos(array $keyInfos)
{ {
$this->keyInfos = $keyInfos; $this->keyInfos = $keyInfos;
return $this; return $this;
} }
public function setType($type) public function setType(string $type)
{ {
$this->type = $type; $this->type = $type;