Add list of valid indexer options
parent
1e319c7215
commit
58c82e6dc9
|
@ -11,6 +11,11 @@ class Options
|
||||||
*/
|
*/
|
||||||
public $fileTypes = ['.php'];
|
public $fileTypes = ['.php'];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* List of options that affect the indexer
|
||||||
|
*/
|
||||||
|
private $indexerOptions = ['fileTypes'];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validate/Filter input and set options for file types
|
* Validate/Filter input and set options for file types
|
||||||
*
|
*
|
||||||
|
@ -26,6 +31,16 @@ class Options
|
||||||
$this->fileTypes = !empty($fileTypes) ? $fileTypes : $this->fileTypes;
|
$this->fileTypes = !empty($fileTypes) ? $fileTypes : $this->fileTypes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get list with options that affect the indexer
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function getIndexerOptions(): array
|
||||||
|
{
|
||||||
|
return $this->indexerOptions;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filter valid file type
|
* Filter valid file type
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue