]> git.mxchange.org Git - friendica.git/blobdiff - src/Object/Search/ContactResult.php
Posts per author/server on the community pages (#13764)
[friendica.git] / src / Object / Search / ContactResult.php
index ccfb5f4cfdd384e0bc56cbefaf051d227ec57ce7..c46b9b6e4c73731333a8a79fb390fe567e789110 100644 (file)
@@ -1,8 +1,28 @@
 <?php
+/**
+ * @copyright Copyright (C) 2010-2023, the Friendica project
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
+ *
+ */
 
 namespace Friendica\Object\Search;
 
 use Friendica\Model\Search;
+use Psr\Http\Message\UriInterface;
 
 /**
  * A search result for contact searching
@@ -32,7 +52,7 @@ class ContactResult implements IResult
         */
        private $item;
        /**
-        * @var string
+        * @var UriInterface
         */
        private $url;
        /**
@@ -89,9 +109,9 @@ class ContactResult implements IResult
        }
 
        /**
-        * @return string
+        * @return UriInterface
         */
-       public function getUrl()
+       public function getUrl(): UriInterface
        {
                return $this->url;
        }
@@ -124,14 +144,14 @@ class ContactResult implements IResult
         * @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;