From c15fd87d47303fa286bc5c5f288eb48951e2ba4b Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Mon, 24 Sep 2012 15:01:16 -0400 Subject: [PATCH] Added some property comments. --- .../VuFind/src/VuFind/Search/Solr/Options.php | 36 +++++++++++++++++-- .../VuFind/src/VuFindTest/Unit/TestCase.php | 5 +++ 2 files changed, 38 insertions(+), 3 deletions(-) diff --git a/module/VuFind/src/VuFind/Search/Solr/Options.php b/module/VuFind/src/VuFind/Search/Solr/Options.php index 34d714f27ac..4b2fab1393c 100644 --- a/module/VuFind/src/VuFind/Search/Solr/Options.php +++ b/module/VuFind/src/VuFind/Search/Solr/Options.php @@ -40,16 +40,46 @@ use VuFind\Config\Reader as ConfigReader, */ class Options extends BaseOptions { - // Spelling + /** + * Spelling limit + * + * @var int + */ protected $spellingLimit = 3; + + /** + * Selected spelling dictionary + * + * @var string + */ protected $dictionary = 'default'; + + /** + * Level of spelling correction sophistication + * + * @var bool + */ protected $spellSimple = false; + + /** + * Spell check words with numbers in them? + * + * @var bool + */ protected $spellSkipNumeric = true; - // Pre-assigned filters + /** + * Pre-assigned filters + * + * @var array + */ protected $hiddenFilters = array(); - // Shard fields to strip + /** + * Shard fields to strip + * + * @var array + */ protected $solrShardsFieldsToStrip = array(); /** diff --git a/module/VuFind/src/VuFindTest/Unit/TestCase.php b/module/VuFind/src/VuFindTest/Unit/TestCase.php index 26216e9cf1b..d533f805ea4 100644 --- a/module/VuFind/src/VuFindTest/Unit/TestCase.php +++ b/module/VuFind/src/VuFindTest/Unit/TestCase.php @@ -41,6 +41,11 @@ namespace VuFindTest\Unit; abstract class TestCase extends \PHPUnit_Framework_TestCase { + /** + * The service manager instance + * + * @var \Zend\ServiceManager\ServiceManager + */ protected $serviceManager = false; /** -- GitLab