Skip to content

Commit 5598d0f

Browse files
committed
added new direction 'changing'
closes #18
1 parent caefafb commit 5598d0f

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

src/Api/RemoteApi.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@ public function getOutputElements(): array
5757
return $this->getElements(IApiElement::DIRECTION_OUTPUT);
5858
}
5959

60+
/**
61+
* Get all direction changing values of the remote function.
62+
* @return IApiElement[]
63+
*/
64+
public function getChangingElements(): array
65+
{
66+
return $this->getElements(IApiElement::DIRECTION_CHANGING);
67+
}
68+
6069
/**
6170
* Get all tables of the remote function.
6271
* @return IApiElement[]

src/Api/Struct.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ protected function getAllowedDirections(): array
6565
{
6666
return [
6767
self::DIRECTION_INPUT,
68-
self::DIRECTION_OUTPUT
68+
self::DIRECTION_OUTPUT,
69+
self::DIRECTION_CHANGING
6970
];
7071
}
7172

src/Api/Value.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ protected function getAllowedDirections(): array
8686
{
8787
return [
8888
self::DIRECTION_INPUT,
89-
self::DIRECTION_OUTPUT
89+
self::DIRECTION_OUTPUT,
90+
self::DIRECTION_CHANGING
9091
];
9192
}
9293
}

0 commit comments

Comments
 (0)