`Tab`: Fix type of property `$url`

`$url` can either be a string or `Icinga\Web\Url` instance.
This commit is contained in:
raviks789 2023-08-14 17:21:25 +02:00
parent 3b707fb6ab
commit daddfe11b5
1 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ use Icinga\Web\Url;
* @property string $title Tab title
* @property string $icon Icon URL, preferrably relative to the Icinga
* base URL
* @property string $url Action URL, preferrably relative to the Icinga
* @property string|URL $url Action URL, preferrably relative to the Icinga
* base URL
* @property string $urlParams Action URL Parameters
*
@ -52,7 +52,7 @@ class Tab extends AbstractWidget
/**
* The Url this tab points to
*
* @var string|null
* @var Url|null
*/
private $url = null;
@ -172,7 +172,7 @@ class Tab extends AbstractWidget
/**
* Set the Url this tab points to
*
* @param string $url The Url to use for this tab
* @param string|Url $url The Url to use for this tab
*/
public function setUrl($url)
{