mirror of
https://github.com/friendica/friendica
synced 2025-04-27 11:10:12 +00:00
renaming
This commit is contained in:
parent
a7aae9603a
commit
419cc81ef1
5 changed files with 37 additions and 36 deletions
|
@ -5,11 +5,11 @@ namespace Friendica\Object\Search;
|
|||
use Friendica\Model\Search;
|
||||
|
||||
/**
|
||||
* A search result
|
||||
* A search result for contact searching
|
||||
*
|
||||
* @see Search for defails
|
||||
* @see Search for details
|
||||
*/
|
||||
class Result
|
||||
class ContactResult
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
|
@ -18,7 +18,7 @@ class Result
|
|||
/**
|
||||
* @var int
|
||||
*/
|
||||
private $pcid;
|
||||
private $pCid;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
|
@ -59,9 +59,9 @@ class Result
|
|||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getPcid()
|
||||
public function getPCid()
|
||||
{
|
||||
return $this->pcid;
|
||||
return $this->pCid;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -140,7 +140,7 @@ class Result
|
|||
$this->network = $network;
|
||||
|
||||
$this->cid = $cid;
|
||||
$this->pcid = $pcid;
|
||||
$this->pCid = $pcid;
|
||||
$this->tags = $tags;
|
||||
}
|
||||
}
|
|
@ -5,11 +5,11 @@ namespace Friendica\Object\Search;
|
|||
use Friendica\Model\Search;
|
||||
|
||||
/**
|
||||
* A list of search results with details
|
||||
* A list of search results for contacts with metadata
|
||||
*
|
||||
* @see Search for details
|
||||
*/
|
||||
class ResultList
|
||||
class ContactResultList
|
||||
{
|
||||
/**
|
||||
* Page of the result list
|
||||
|
@ -28,7 +28,8 @@ class ResultList
|
|||
private $itemsPage;
|
||||
/**
|
||||
* Array of results
|
||||
* @var Result[]
|
||||
*
|
||||
* @var ContactResult[]
|
||||
*/
|
||||
private $results;
|
||||
|
||||
|
@ -57,7 +58,7 @@ class ResultList
|
|||
}
|
||||
|
||||
/**
|
||||
* @return Result[]
|
||||
* @return ContactResult[]
|
||||
*/
|
||||
public function getResults()
|
||||
{
|
||||
|
@ -65,10 +66,10 @@ class ResultList
|
|||
}
|
||||
|
||||
/**
|
||||
* @param int $page
|
||||
* @param int $total
|
||||
* @param int $itemsPage
|
||||
* @param Result[] $results
|
||||
* @param int $page
|
||||
* @param int $total
|
||||
* @param int $itemsPage
|
||||
* @param ContactResult[] $results
|
||||
*/
|
||||
public function __construct($page = 0, $total = 0, $itemsPage = 0, array $results = [])
|
||||
{
|
||||
|
@ -82,9 +83,9 @@ class ResultList
|
|||
/**
|
||||
* Adds a result to the result list
|
||||
*
|
||||
* @param Result $result
|
||||
* @param ContactResult $result
|
||||
*/
|
||||
public function addResult(Result $result)
|
||||
public function addResult(ContactResult $result)
|
||||
{
|
||||
$this->results[] = $result;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue