Nullable+void typehint

This commit is contained in:
Dennis Eichhorn 2018-03-13 20:55:24 +01:00
parent 105e33479a
commit 8245f687df
6 changed files with 30 additions and 30 deletions

View File

@ -36,7 +36,7 @@ class Navigation
*
* @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);

View File

@ -55,7 +55,7 @@ class KanbanBoard implements \JsonSerializable
return $this->name;
}
public function setName(string $name) /* : void */
public function setName(string $name) : void
{
$this->name = $name;
}
@ -65,7 +65,7 @@ class KanbanBoard implements \JsonSerializable
return $this->status;
}
public function setStatus(int $status) /* : void */
public function setStatus(int $status) : void
{
$this->status = $status;
}
@ -75,7 +75,7 @@ class KanbanBoard implements \JsonSerializable
return $this->order;
}
public function setOrder(int $order) /* : void */
public function setOrder(int $order) : void
{
$this->order = $order;
}
@ -85,7 +85,7 @@ class KanbanBoard implements \JsonSerializable
return $this->description;
}
public function setDescription(string $description) /* : void */
public function setDescription(string $description) : void
{
$this->description = $description;
}
@ -95,7 +95,7 @@ class KanbanBoard implements \JsonSerializable
return $this->createdBy;
}
public function setCreatedBy(int $id) /* : void */
public function setCreatedBy(int $id) : void
{
$this->createdBy = $id;
}
@ -110,7 +110,7 @@ class KanbanBoard implements \JsonSerializable
return $this->columns;
}
public function addColumn($column) /* : void */
public function addColumn($column) : void
{
$this->columns[] = $column;
}

View File

@ -62,7 +62,7 @@ class KanbanCard implements \JsonSerializable
return $this->order;
}
public function setOrder(int $order) /* : void */
public function setOrder(int $order) : void
{
$this->order = $order;
}
@ -72,7 +72,7 @@ class KanbanCard implements \JsonSerializable
return $this->id;
}
public function setColumn(int $id) /* : void */
public function setColumn(int $id) : void
{
$this->column = $id;
}
@ -87,7 +87,7 @@ class KanbanCard implements \JsonSerializable
return $this->name;
}
public function setName(string $name) /* : void */
public function setName(string $name) : void
{
$this->name = $name;
}
@ -97,7 +97,7 @@ class KanbanCard implements \JsonSerializable
return $this->status;
}
public function setStatus(int $status) /* : void */
public function setStatus(int $status) : void
{
$this->status = $status;
}
@ -107,7 +107,7 @@ class KanbanCard implements \JsonSerializable
return $this->type;
}
public function setType(int $type) /* : void */
public function setType(int $type) : void
{
$this->type = $type;
}
@ -117,7 +117,7 @@ class KanbanCard implements \JsonSerializable
return $this->ref;
}
public function setRef(int $ref) /* : void */
public function setRef(int $ref) : void
{
$this->ref = $ref;
}
@ -127,7 +127,7 @@ class KanbanCard implements \JsonSerializable
return $this->description;
}
public function setDescription(string $description) /* : void */
public function setDescription(string $description) : void
{
$this->description = $description;
}
@ -137,7 +137,7 @@ class KanbanCard implements \JsonSerializable
return $this->createdBy;
}
public function setCreatedBy(int $id) /* : void */
public function setCreatedBy(int $id) : void
{
$this->createdBy = $id;
}
@ -152,7 +152,7 @@ class KanbanCard implements \JsonSerializable
return $this->comments;
}
public function addComment($comment) /* : void */
public function addComment($comment) : void
{
$this->comments[] = $comment;
}
@ -173,12 +173,12 @@ class KanbanCard implements \JsonSerializable
return $this->media;
}
public function addMedia($media) /* : void */
public function addMedia($media) : void
{
$this->media[] = $media;
}
public function setLabels(array $labels) /* : void */
public function setLabels(array $labels) : void
{
$this->labels = $labels;
}
@ -188,7 +188,7 @@ class KanbanCard implements \JsonSerializable
return $this->labels;
}
public function addLabel($label) /* : void */
public function addLabel($label) : void
{
$this->labels[] = $label;
}

View File

@ -48,7 +48,7 @@ class KanbanCardComment implements \JsonSerializable
return $this->id;
}
public function setCard(int $id) /* : void */
public function setCard(int $id) : void
{
$this->card = $id;
}
@ -63,7 +63,7 @@ class KanbanCardComment implements \JsonSerializable
return $this->description;
}
public function setDescription(string $description) /* : void */
public function setDescription(string $description) : void
{
$this->description = $description;
}
@ -73,7 +73,7 @@ class KanbanCardComment implements \JsonSerializable
return $this->createdBy;
}
public function setCreatedBy(int $id) /* : void */
public function setCreatedBy(int $id) : void
{
$this->createdBy = $id;
}
@ -88,7 +88,7 @@ class KanbanCardComment implements \JsonSerializable
return $this->media;
}
public function addMedia($media) /* : void */
public function addMedia($media) : void
{
$this->media[] = $media;
}

View File

@ -48,12 +48,12 @@ class KanbanColumn implements \JsonSerializable
return $this->order;
}
public function setOrder(int $order) /* : void */
public function setOrder(int $order) : void
{
$this->order = $order;
}
public function setBoard(int $board) /* : void */
public function setBoard(int $board) : void
{
$this->board = $board;
}
@ -68,7 +68,7 @@ class KanbanColumn implements \JsonSerializable
return $this->name;
}
public function setName(string $name) /* : void */
public function setName(string $name) : void
{
$this->name = $name;
}
@ -78,7 +78,7 @@ class KanbanColumn implements \JsonSerializable
return $this->cards;
}
public function addCard(KanbanCard $card) /* : void */
public function addCard(KanbanCard $card) : void
{
$this->cards[] = $card;
}

View File

@ -47,12 +47,12 @@ class KanbanLabel implements \JsonSerializable
return $this->name;
}
public function setName(string $name) /* : void */
public function setName(string $name) : void
{
$this->name = $name;
}
public function setColor(int $color) /* : void */
public function setColor(int $color) : void
{
$this->color = $color;
}
@ -67,7 +67,7 @@ class KanbanLabel implements \JsonSerializable
return $this->board;
}
public function setBoard(int $board) /* : void */
public function setBoard(int $board) : void
{
$this->board = $board;
}