| 1 | <?php |
||
| 8 | class Document |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var \PSolr\Request\Field[] |
||
| 12 | */ |
||
| 13 | protected $fields = array(); |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var float |
||
| 17 | */ |
||
| 18 | protected $boost; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param float $boost |
||
| 22 | */ |
||
| 23 | public function __construct($boost = 0.0) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param float $boost |
||
| 30 | * |
||
| 31 | * @return \PSolr\Request\Document |
||
| 32 | * |
||
| 33 | * @see http://wiki.apache.org/solr/UpdateXmlMessages#Optional_attributes_on_.22doc.22 |
||
| 34 | */ |
||
| 35 | public function setBoost($boost) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return float |
||
| 43 | */ |
||
| 44 | public function getBoost($boost) |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @param \PSolr\Request\Field $field |
||
| 51 | * |
||
| 52 | * @return \PSolr\Request\Document |
||
| 53 | */ |
||
| 54 | public function addField(Field $field) |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @param type $name |
||
| 62 | * @param type $value |
||
| 63 | */ |
||
| 64 | public function __set($name, $value) |
||
| 72 | |||
| 73 | /** |
||
| 74 | * @return string |
||
| 75 | */ |
||
| 76 | public function asXml() |
||
| 85 | |||
| 86 | /** |
||
| 87 | * @return string |
||
| 88 | */ |
||
| 89 | public function __toString() |
||
| 93 | } |
||
| 94 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.