-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
0e1d769
commit 4d9a240
Showing
7 changed files
with
94 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace Solarium\Tests\Integration\Query; | ||
|
||
use Solarium\Component\QueryInterface; | ||
use Solarium\QueryType\Select\Query\Query as SelectQuery; | ||
|
||
/** | ||
* Custom query that overrides the setQuery() method with a QueryInterface return type. | ||
*/ | ||
class CustomQueryInterfaceQuery extends SelectQuery | ||
{ | ||
/** | ||
* @return self Provides fluent interface | ||
*/ | ||
public function setQuery(string $query, array $bind = null): QueryInterface | ||
{ | ||
return parent::setQuery($query, $bind); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace Solarium\Tests\Integration\Query; | ||
|
||
use Solarium\QueryType\Select\Query\Query as SelectQuery; | ||
|
||
/** | ||
* Custom query that overrides the setQuery() method with a self return type. | ||
*/ | ||
class CustomSelfQuery extends SelectQuery | ||
{ | ||
/** | ||
* @return self Provides fluent interface | ||
*/ | ||
public function setQuery(string $query, array $bind = null): self | ||
{ | ||
return parent::setQuery($query, $bind); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace Solarium\Tests\Integration\Query; | ||
|
||
use Solarium\QueryType\Select\Query\Query as SelectQuery; | ||
|
||
/** | ||
* Custom query that overrides the setQuery() method with a static return type. | ||
*/ | ||
class CustomStaticQuery extends SelectQuery | ||
{ | ||
/** | ||
* @return static Provides fluent interface | ||
*/ | ||
public function setQuery(string $query, array $bind = null): static | ||
{ | ||
return parent::setQuery($query, $bind); | ||
} | ||
} |