mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
type hint fixes
This commit is contained in:
parent
4d09f2a55c
commit
0e69997579
11 changed files with 17 additions and 29 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue