Skip to content

Commit

Permalink
Add missing argument type hint declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabteab committed Sep 8, 2023
1 parent 7638be9 commit 152d832
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions library/Icingadb/Common/BaseStatusBar.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ abstract class BaseStatusBar extends BaseHtmlElement

protected $defaultAttributes = ['class' => 'status-bar'];

/**
* Create a host or service status bar
*
* @param ServicestateSummary|HoststateSummary $summary
*/
public function __construct($summary)
{
$this->summary = $summary;
Expand Down
5 changes: 5 additions & 0 deletions library/Icingadb/Widget/Notice.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ class Notice extends BaseHtmlElement

protected $defaultAttributes = ['class' => 'notice'];

/**
* Create a html notice
*
* @param mixed $content
*/
public function __construct($content)
{
$this->content = $content;
Expand Down

0 comments on commit 152d832

Please sign in to comment.