mirror of
https://github.com/Karaka-Management/oms-ProjectManagement.git
synced 2026-02-13 06:18:40 +00:00
Nullable+void typehint
This commit is contained in:
parent
dbc06fc558
commit
e7d0d2b032
|
|
@ -36,7 +36,7 @@ class Navigation
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public static function install(string $path = null, DatabasePool $dbPool = null) /* : void */
|
public static function install(string $path = null, DatabasePool $dbPool = null) : void
|
||||||
{
|
{
|
||||||
$navData = json_decode(file_get_contents(__DIR__ . '/Navigation.install.json'), true);
|
$navData = json_decode(file_get_contents(__DIR__ . '/Navigation.install.json'), true);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -96,7 +96,7 @@ class Project
|
||||||
return $this->media;
|
return $this->media;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function addMedia($media) /* : void */
|
public function addMedia($media) : void
|
||||||
{
|
{
|
||||||
$this->media[] = $media;
|
$this->media[] = $media;
|
||||||
}
|
}
|
||||||
|
|
@ -126,7 +126,7 @@ class Project
|
||||||
return $this->progress;
|
return $this->progress;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setProgress(int $progress) /* : void */
|
public function setProgress(int $progress) : void
|
||||||
{
|
{
|
||||||
$this->progress = $progress;
|
$this->progress = $progress;
|
||||||
}
|
}
|
||||||
|
|
@ -136,7 +136,7 @@ class Project
|
||||||
return $this->progressType;
|
return $this->progressType;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setProgressType(int $type) /* : void */
|
public function setProgressType(int $type) : void
|
||||||
{
|
{
|
||||||
$this->progressType = $type;
|
$this->progressType = $type;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user