Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added RepresentationCollectionFinderProviderInterface
- Loading branch information
1 parent
172cf68
commit 1e3ece4
Showing
3 changed files
with
46 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
namespace hipanel\grid; | ||
|
||
use hiqdev\higrid\representations\RepresentationCollection; | ||
use hiqdev\higrid\representations\RepresentationCollectionInterface; | ||
use yii\base\InvalidConfigException; | ||
|
||
/** | ||
* Interface RepresentationCollectionFinderInterface provides an API to find | ||
* representation collections in conformance to the current HTTP request | ||
* | ||
* @author Dmytro Naumenko <d.naumenko.a@gmail.com> | ||
*/ | ||
interface RepresentationCollectionFinderInterface | ||
{ | ||
/** | ||
* @return RepresentationCollectionInterface|RepresentationCollection | ||
*/ | ||
public function find(); | ||
|
||
/** | ||
* @throws InvalidConfigException When collection does not exist for the route | ||
* @return RepresentationCollection|RepresentationCollectionInterface | ||
*/ | ||
public function findOrFail(); | ||
|
||
/** | ||
* @return RepresentationCollectionInterface|RepresentationCollection | ||
*/ | ||
public function findOrFallback(); | ||
} |
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,8 @@ | ||
<?php | ||
|
||
namespace hipanel\grid; | ||
|
||
interface RepresentationCollectionFinderProviderInterface | ||
{ | ||
public function getRepresentationCollectionFinder(): RepresentationCollectionFinderInterface; | ||
} |