<?php
/**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2023, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
namespace Friendica\Object\Search;
use Friendica\Model\Search;
+use Psr\Http\Message\UriInterface;
/**
* A search result for contact searching
*/
private $item;
/**
- * @var string
+ * @var UriInterface
*/
private $url;
/**
}
/**
- * @return string
+ * @return UriInterface
*/
- public function getUrl()
+ public function getUrl(): UriInterface
{
return $this->url;
}
* @param string $name
* @param string $addr
* @param string $item
- * @param string $url
+ * @param UriInterface $url
* @param string $photo
* @param string $network
* @param int $cid
* @param int $pCid
* @param string $tags
*/
- public function __construct($name, $addr, $item, $url, $photo, $network, $cid = 0, $pCid = 0, $tags = '')
+ public function __construct($name, $addr, $item, UriInterface $url, $photo, $network, $cid = 0, $pCid = 0, $tags = '')
{
$this->name = $name;
$this->addr = $addr;