type hint fixes

This commit is contained in:
Robin Appelman 2021-03-02 19:17:37 +01:00
commit 0e69997579
11 changed files with 17 additions and 29 deletions

View file

@ -10,31 +10,18 @@ namespace Icewind\SMB;
class Change {
private $code;
private $path;
/**
* Change constructor.
*
* @param $code
* @param $path
*/
public function __construct($code, $path) {
public function __construct(string $code, int $path) {
$this->code = $code;
$this->path = $path;
}
/**
* @return integer
*/
public function getCode() {
public function getCode(): int {
return $this->code;
}
/**
* @return string
*/
public function getPath() {
public function getPath(): string {
return $this->path;
}
}