mirror of
https://github.com/Karaka-Management/oms-Knowledgebase.git
synced 2026-02-05 21:08:40 +00:00
Nullable+void typehint
This commit is contained in:
parent
c1e72f011f
commit
f8ffabfa2d
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ class WikiBadge implements \JsonSerializable
|
||||||
return $this->name;
|
return $this->name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setName(string $name) /* : void */
|
public function setName(string $name) : void
|
||||||
{
|
{
|
||||||
$this->name = $name;
|
$this->name = $name;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -44,17 +44,17 @@ class WikiCategory implements \JsonSerializable
|
||||||
return $this->name;
|
return $this->name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setName(string $name) /* : void */
|
public function setName(string $name) : void
|
||||||
{
|
{
|
||||||
$this->name = $name;
|
$this->name = $name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getParent() /* : ?int */
|
public function getParent() : ?int
|
||||||
{
|
{
|
||||||
return $this->parent;
|
return $this->parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setParent(int $parent) /* : void */
|
public function setParent(int $parent) : void
|
||||||
{
|
{
|
||||||
$this->parent = $parent;
|
$this->parent = $parent;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ class WikiDoc implements \JsonSerializable
|
||||||
return $this->language;
|
return $this->language;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setLanguage(string $language) /* : void */
|
public function setLanguage(string $language) : void
|
||||||
{
|
{
|
||||||
$this->language = $language;
|
$this->language = $language;
|
||||||
}
|
}
|
||||||
|
|
@ -67,7 +67,7 @@ class WikiDoc implements \JsonSerializable
|
||||||
return $this->name;
|
return $this->name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setName(string $name) /* : void */
|
public function setName(string $name) : void
|
||||||
{
|
{
|
||||||
$this->name = $name;
|
$this->name = $name;
|
||||||
}
|
}
|
||||||
|
|
@ -77,7 +77,7 @@ class WikiDoc implements \JsonSerializable
|
||||||
return $this->doc;
|
return $this->doc;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setDoc(string $doc) /* : void */
|
public function setDoc(string $doc) : void
|
||||||
{
|
{
|
||||||
$this->doc = $doc;
|
$this->doc = $doc;
|
||||||
}
|
}
|
||||||
|
|
@ -87,7 +87,7 @@ class WikiDoc implements \JsonSerializable
|
||||||
return $this->status;
|
return $this->status;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setStatus(int $status) /* : void */
|
public function setStatus(int $status) : void
|
||||||
{
|
{
|
||||||
$this->status = $status;
|
$this->status = $status;
|
||||||
}
|
}
|
||||||
|
|
@ -97,7 +97,7 @@ class WikiDoc implements \JsonSerializable
|
||||||
return $this->category;
|
return $this->category;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setCategory(int $category) /* : void */
|
public function setCategory(int $category) : void
|
||||||
{
|
{
|
||||||
$this->category = $category;
|
$this->category = $category;
|
||||||
}
|
}
|
||||||
|
|
@ -107,7 +107,7 @@ class WikiDoc implements \JsonSerializable
|
||||||
return $this->createdBy;
|
return $this->createdBy;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setCreatedBy(int $id) /* : void */
|
public function setCreatedBy(int $id) : void
|
||||||
{
|
{
|
||||||
$this->createdBy = $id;
|
$this->createdBy = $id;
|
||||||
}
|
}
|
||||||
|
|
@ -122,7 +122,7 @@ class WikiDoc implements \JsonSerializable
|
||||||
return $this->badges;
|
return $this->badges;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function addBadge($badge) /* : void */
|
public function addBadge($badge) : void
|
||||||
{
|
{
|
||||||
$this->badges[] = $badge;
|
$this->badges[] = $badge;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user