AdapterInterface::setOptions()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
c 0
b 0
f 0
1
<?php
2
/**
3
 * @company MTE Telecom, Ltd.
4
 * @author Roman Malashin <[email protected]>
5
 */
6
7
namespace Nnx\DataGrid\Adapter;
8
9
use Doctrine\Common\Collections\ArrayCollection;
10
use Nnx\DataGrid\Condition\Conditions;
11
use ArrayAccess;
12
use Traversable;
13
use Zend\Stdlib\InitializableInterface;
14
15
/**
16
 * Interface AdapterInterface
17
 * @package Nnx\DataGrid\Adapter
18
 */
19
interface AdapterInterface extends InitializableInterface
20
{
21
    /**
22
     * @return array | ArrayCollection
23
     */
24
    public function getData();
25
26
    /**
27
     * @return int
28
     */
29
    public function getCount();
30
31
    /**
32
     * Устанавливает набор Conditions для выборки
33
     * @param Conditions $conditions
34
     * @return mixed
35
     */
36
    public function setConditions(Conditions $conditions);
37
38
    /**
39
     * Возвращает набор Conditions для выборки
40
     * @return Conditions
41
     */
42
    public function getConditions();
43
44
    /**
45
     * Устанавливает опции для адаптера
46
     * @param array | ArrayAccess | Traversable $options
47
     * @return $this
48
     */
49
    public function setOptions($options);
50
51
    /**
52
     * Возвращает опции адаптера
53
     * @return array | ArrayAccess | Traversable
54
     */
55
    public function getOptions();
56
}
0 ignored issues
show
Coding Style introduced by
As per coding style, files should not end with a newline character.

This check marks files that end in a newline character, i.e. an empy line.

Loading history...
57