File tree Expand file tree Collapse file tree 6 files changed +51
-16
lines changed Expand file tree Collapse file tree 6 files changed +51
-16
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public function getOutputValues();
38
38
39
39
/**
40
40
* Get all tables of the remote function.
41
- * @return \phpsap\interfaces\Api\IArray []
41
+ * @return \phpsap\interfaces\Api\ITable []
42
42
*/
43
43
public function getTables ();
44
44
}
Original file line number Diff line number Diff line change 5
5
/**
6
6
* Interface IArray
7
7
*
8
- * API extend the logic of values but contain member elements.
8
+ * API extend the logic of values to contain member elements.
9
9
*
10
10
* @package phpsap\interfaces\Api
11
11
* @author Gregor J.
12
12
* @license MIT
13
13
*/
14
14
interface IArray extends IValue
15
15
{
16
- /**
17
- * API table element.
18
- */
19
- const DIRECTION_TABLE = 'table ' ;
20
-
21
- /**
22
- * API element that casts to PHP array.
23
- */
24
- const TYPE_ARRAY = 'array ' ;
25
-
26
16
/**
27
17
* JSON configuration key for members array.
28
18
*/
29
19
const JSON_MEMBERS = 'members ' ;
30
20
31
21
/**
32
22
* Cast a given output value to the implemented value.
33
- * @param array $struct The output array to typecast.
23
+ * @param array $value The output array to typecast.
34
24
* @return array
35
25
* @throws \phpsap\interfaces\exceptions\IArrayElementMissingException
36
26
* @throws \phpsap\interfaces\exceptions\IInvalidArgumentException
37
27
*/
38
- public function cast ($ struct );
28
+ public function cast ($ value );
39
29
40
30
/**
41
31
* Return an array of member elements.
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ public function getName();
87
87
/**
88
88
* Cast a given output value to the implemented value.
89
89
* @param bool|int|float|string $value The output to typecast.
90
- * @return bool|int|float|string|\phpsap\DateTime\SapDateTime
90
+ * @return bool|int|float|string|\phpsap\DateTime\SapDateTime|\phpsap\DateTime\SapDateInterval
91
91
* @throws \phpsap\interfaces\exceptions\IInvalidArgumentException
92
92
*/
93
93
public function cast ($ value );
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace phpsap \interfaces \Api ;
4
+
5
+ /**
6
+ * Interface IStruct
7
+ *
8
+ * API extend the logic of arrays to contain member elements.
9
+ *
10
+ * @package phpsap\interfaces\Api
11
+ * @author Gregor J.
12
+ * @license MIT
13
+ */
14
+ interface IStruct extends IArray
15
+ {
16
+ /**
17
+ * API element that casts to an associative array in PHP.
18
+ */
19
+ const TYPE_STRUCT = 'struct ' ;
20
+ }
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace phpsap \interfaces \Api ;
4
+
5
+ /**
6
+ * Interface ITable
7
+ *
8
+ * API extend the logic of arrays but contains rows of member elements.
9
+ *
10
+ * @package phpsap\interfaces\Api
11
+ * @author Gregor J.
12
+ * @license MIT
13
+ */
14
+ interface ITable extends IArray
15
+ {
16
+ /**
17
+ * API table element.
18
+ */
19
+ const DIRECTION_TABLE = 'table ' ;
20
+
21
+ /**
22
+ * API element that casts to a PHP array of associative arrays.
23
+ */
24
+ const TYPE_TABLE = 'table ' ;
25
+ }
Original file line number Diff line number Diff line change 5
5
/**
6
6
* Interface IArrayElementMissingException
7
7
*
8
- * A table element required by the API is not in the table.
8
+ * A table/struct element required by the API is not in the table/struct .
9
9
*
10
10
* @package phpsap\interfaces\exceptions
11
11
* @author Gregor J.
You can’t perform that action at this time.
0 commit comments