1 | <?php |
||
25 | abstract class AbstractPipe |
||
26 | { |
||
27 | /** |
||
28 | * @var int |
||
29 | */ |
||
30 | protected $position = Workflow::APPEND; |
||
31 | |||
32 | /** |
||
33 | * @var FilterInterface |
||
34 | */ |
||
35 | protected $filter; |
||
36 | |||
37 | /** |
||
38 | * @var ConverterInterface |
||
39 | */ |
||
40 | protected $converter; |
||
41 | |||
42 | /** |
||
43 | * @var WriterInterface |
||
44 | */ |
||
45 | protected $writer; |
||
46 | |||
47 | /** |
||
48 | * @var string|int|array |
||
49 | */ |
||
50 | protected $field; |
||
51 | |||
52 | /** |
||
53 | * @var string|int|array |
||
54 | */ |
||
55 | protected $filterField; |
||
56 | |||
57 | /** |
||
58 | * @param mixed $element |
||
59 | */ |
||
60 | 8 | public function __construct($element) |
|
77 | |||
78 | /** |
||
79 | * @return FilterInterface |
||
80 | */ |
||
81 | 6 | public function getFilter() |
|
85 | |||
86 | /** |
||
87 | * @return ConverterInterface |
||
88 | */ |
||
89 | 5 | public function getConverter() |
|
93 | |||
94 | /** |
||
95 | * @return WriterInterface |
||
96 | */ |
||
97 | 2 | public function getWriter() |
|
101 | |||
102 | /** |
||
103 | * @return int |
||
104 | */ |
||
105 | 1 | public function getPosition() |
|
109 | |||
110 | /** |
||
111 | * @return array|int|string |
||
112 | */ |
||
113 | 2 | public function getField() |
|
117 | |||
118 | /** |
||
119 | * @return array|int|string |
||
120 | */ |
||
121 | 1 | public function getFilterField() |
|
125 | |||
126 | /** |
||
127 | * @param int $position |
||
128 | * |
||
129 | * @return AbstractPipe |
||
130 | */ |
||
131 | 1 | public function setPosition($position) |
|
137 | |||
138 | /** |
||
139 | * @param FilterInterface $filter |
||
140 | * |
||
141 | * @return AbstractPipe |
||
142 | */ |
||
143 | 2 | public function setFilter(FilterInterface $filter) |
|
149 | |||
150 | /** |
||
151 | * @param array|int|string $filterField |
||
152 | * |
||
153 | * @return $this |
||
154 | */ |
||
155 | 1 | public function setFilterField($filterField) |
|
161 | |||
162 | /** |
||
163 | * @param array|int|string $field |
||
164 | * |
||
165 | * @return $this |
||
166 | */ |
||
167 | 2 | public function setField($field) |
|
173 | } |
||
174 |