Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
solarium
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
solarium
Commits
bc946ef5
Commit
bc946ef5
authored
Sep 10, 2013
by
Dorian Villet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing type hints on Document that should hints on DocumentInterface.
parent
0766401c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
library/Solarium/QueryType/Extract/Query.php
library/Solarium/QueryType/Extract/Query.php
+4
-4
library/Solarium/QueryType/Update/Query/Command/Add.php
library/Solarium/QueryType/Update/Query/Command/Add.php
+5
-5
library/Solarium/QueryType/Update/Query/Query.php
library/Solarium/QueryType/Update/Query/Query.php
+4
-4
No files found.
library/Solarium/QueryType/Extract/Query.php
View file @
bc946ef5
...
...
@@ -45,7 +45,7 @@ namespace Solarium\QueryType\Extract;
use
Solarium\Core\Query\Query
as
BaseQuery
;
use
Solarium\Core\Client\Client
;
use
Solarium\QueryType\Update\ResponseParser
as
UpdateResponseParser
;
use
Solarium\QueryType\Update\Query\Document\Document
;
use
Solarium\QueryType\Update\Query\Document\Document
Interface
;
/**
* Extract query
...
...
@@ -131,7 +131,7 @@ class Query extends BaseQuery
* The fields in the document are indexed together with the generated
* fields that Solr extracts from the file.
*
* @param Document $document
* @param Document
Interface
$document
* @return self
*/
public
function
setDocument
(
$document
)
...
...
@@ -142,7 +142,7 @@ class Query extends BaseQuery
/**
* Get the document with literal fields and boost settings
*
* @return Document|null
* @return Document
Interface
|null
*/
public
function
getDocument
()
{
...
...
@@ -394,7 +394,7 @@ class Query extends BaseQuery
*
* @param array $fields
* @param array $boosts
* @return Document
* @return Document
Interface
*/
public
function
createDocument
(
$fields
=
array
(),
$boosts
=
array
())
{
...
...
library/Solarium/QueryType/Update/Query/Command/Add.php
View file @
bc946ef5
...
...
@@ -38,7 +38,7 @@
*/
namespace
Solarium\QueryType\Update\Query\Command
;
use
Solarium\QueryType\Update\Query\Query
as
UpdateQuery
;
use
Solarium\QueryType\Update\Query\Document\Document
;
use
Solarium\QueryType\Update\Query\Document\Document
Interface
;
use
Solarium\Exception\RuntimeException
;
/**
...
...
@@ -70,12 +70,12 @@ class Add extends Command
* Add a single document
*
* @throws RuntimeException
* @param Document
$document
* @return self Provides fluent interface
* @param Document
Interface
$document
* @return self
Provides fluent interface
*/
public
function
addDocument
(
$document
)
{
if
(
!
(
$document
instanceof
Document
))
{
if
(
!
(
$document
instanceof
Document
Interface
))
{
throw
new
RuntimeException
(
'Documents must implement the document interface'
);
}
...
...
@@ -115,7 +115,7 @@ class Add extends Command
/**
* Get all documents
*
* @return Document[]
* @return Document
Interface
[]
*/
public
function
getDocuments
()
{
...
...
library/Solarium/QueryType/Update/Query/Query.php
View file @
bc946ef5
...
...
@@ -349,10 +349,10 @@ class Query extends BaseQuery
* If you need more control, like choosing a key for the command you need to
* create you own command instance and use the add method.
*
* @param Document $document
* @param boolean $overwrite
* @param int $commitWithin
* @return self Provides fluent interface
* @param Document
Interface
$document
* @param boolean
$overwrite
* @param int
$commitWithin
* @return self
Provides fluent interface
*/
public
function
addDocument
(
$document
,
$overwrite
=
null
,
$commitWithin
=
null
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment