1
0
Fork 0

Add list of valid indexer options

pull/668/head
Jürgen Steitz 2017-03-02 23:11:14 +01:00
parent 1e319c7215
commit 58c82e6dc9
1 changed files with 15 additions and 0 deletions

View File

@ -11,6 +11,11 @@ class Options
*/
public $fileTypes = ['.php'];
/**
* List of options that affect the indexer
*/
private $indexerOptions = ['fileTypes'];
/**
* Validate/Filter input and set options for file types
*
@ -26,6 +31,16 @@ class Options
$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
*