-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathTypeQueryInterface.php
43 lines (38 loc) · 1.18 KB
/
TypeQueryInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
* Copyright (c) 2015, Muhannad Shelleh
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
namespace ItvisionSy\EsMapper;
/**
* This interface adds extra abstract methods needed to implement a typed-level
* query class.
*
* @package ItvisionSy\EsMapper
* @author Muhannad Shelleh <[email protected]>
*
*/
Interface TypeQueryInterface {
/**
* Defines the type string to be passed to the query/fetch methods in ES
* client
*
* @return string
*/
public function type();
/**
* Returns the base model class name to be used.
*
* i.e. if the class full name is \Models\FooModel, this should be Foo
*
* @return string
*/
public function modelClassName();
}