X-Git-Url: https://git.cyclocoop.org/admin/?a=blobdiff_plain;f=includes%2Fsearch%2FSearchIndexFieldDefinition.php;h=d0d2b89947af453de8268d8587183c0aac950700;hb=5264862bc1224fbb2eec487155aa0253af1fa777;hp=87d6344bea425b2556d82cf447b8352a44e3dbd1;hpb=85ac1b5d7c7ca50a93f2d16639cdde2f46bc133e;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/search/SearchIndexFieldDefinition.php b/includes/search/SearchIndexFieldDefinition.php index 87d6344bea..d0d2b89947 100644 --- a/includes/search/SearchIndexFieldDefinition.php +++ b/includes/search/SearchIndexFieldDefinition.php @@ -9,24 +9,28 @@ * @since 1.28 */ abstract class SearchIndexFieldDefinition implements SearchIndexField { + /** * Name of the field * * @var string */ protected $name; + /** * Type of the field, one of the constants above * - * @var int + * @var string */ protected $type; + /** * Bit flags for the field. * * @var int */ protected $flags = 0; + /** * Subfields * @var SearchIndexFieldDefinition[] @@ -40,7 +44,7 @@ abstract class SearchIndexFieldDefinition implements SearchIndexField { /** * @param string $name Field name - * @param int $type Index type + * @param string $type Index type */ public function __construct( $name, $type ) { $this->name = $name; @@ -66,7 +70,7 @@ abstract class SearchIndexFieldDefinition implements SearchIndexField { /** * Set global flag for this field. * - * @param int $flag Bit flag to set/unset + * @param int $flag Bit flag to set/unset * @param bool $unset True if flag should be unset, false by default * @return $this */ @@ -81,7 +85,7 @@ abstract class SearchIndexFieldDefinition implements SearchIndexField { /** * Check if flag is set. - * @param $flag + * @param int $flag * @return int 0 if unset, !=0 if set */ public function checkFlag( $flag ) { @@ -141,7 +145,7 @@ abstract class SearchIndexFieldDefinition implements SearchIndexField { } /** - * {@inheritDoc} + * @inheritDoc */ public function getEngineHints( SearchEngine $engine ) { return [];