]> git.mxchange.org Git - friendica.git/blobdiff - src/Object/Search/ContactResult.php
Merge pull request #11105 from annando/api-direct-messages
[friendica.git] / src / Object / Search / ContactResult.php
index 699afa862dee9f03c374bc4801be9c81abc1d370..d165deed90183a0e3d7f402220e142189ef1b298 100644 (file)
@@ -1,4 +1,23 @@
 <?php
+/**
+ * @copyright Copyright (C) 2010-2021, 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;
 
@@ -9,7 +28,7 @@ use Friendica\Model\Search;
  *
  * @see Search for details
  */
-class ContactResult
+class ContactResult implements IResult
 {
        /**
         * @var int
@@ -123,14 +142,15 @@ class ContactResult
        /**
         * @param string $name
         * @param string $addr
+        * @param string $item
         * @param string $url
         * @param string $photo
         * @param string $network
         * @param int    $cid
-        * @param int    $pcid
+        * @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, $url, $photo, $network, $cid = 0, $pCid = 0, $tags = '')
        {
                $this->name    = $name;
                $this->addr    = $addr;
@@ -140,7 +160,7 @@ class ContactResult
                $this->network = $network;
 
                $this->cid  = $cid;
-               $this->pCid = $pcid;
+               $this->pCid = $pCid;
                $this->tags = $tags;
        }
 }