]> git.openstreetmap.org Git - nominatim.git/blob - lib-php/TokenPartial.php
remove special status of partial tokens
[nominatim.git] / lib-php / TokenPartial.php
1 <?php
2
3 namespace Nominatim\Token;
4
5 /**
6  * A standard word token.
7  */
8 class Partial
9 {
10     /// Database word id, if applicable.
11     public $iId;
12     /// Number of appearances in the database.
13     public $iSearchNameCount;
14
15     public function __construct($iId, $iSearchNameCount)
16     {
17         $this->iId = $iId;
18         $this->iSearchNameCount = $iSearchNameCount;
19     }
20
21     public function debugInfo()
22     {
23         return array(
24                 'ID' => $this->iId,
25                 'Type' => 'partial',
26                 'Info' => array(
27                            'count' => $this->iSearchNameCount
28                           )
29                );
30     }
31 }