From b232b001f09f3d04f6ae4e9b6d65a724507b4d67 Mon Sep 17 00:00:00 2001 From: Saman Sajedi <30348073+eta32carinae@users.noreply.github.com> Date: Tue, 15 Mar 2022 17:24:24 +0330 Subject: [PATCH 1/2] updating UpdateConfigAction setOptions functionality added for UpdateConfigAction --- src/PAMI/Message/Action/UpdateConfigAction.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/PAMI/Message/Action/UpdateConfigAction.php b/src/PAMI/Message/Action/UpdateConfigAction.php index 221a85a35..8d1cf6b16 100644 --- a/src/PAMI/Message/Action/UpdateConfigAction.php +++ b/src/PAMI/Message/Action/UpdateConfigAction.php @@ -165,6 +165,17 @@ public function setLine($input) { $this->setKey('Line-'.$this->getPaddedCounter(), $input); } + + /** + * Sets Options-XXXXXX key. + * + * @param string $input. + *r + * @return void + */ + public function setOptions($input) { + $this->setKey('Options-'.$this->getPaddedCounter(), $input); + } /** * Returns the string representation for counter with leading zeroes in UpdateConfig action format. From 75c3b6ee49e68fc3dfb04d1f2bc46a5a7933c71c Mon Sep 17 00:00:00 2001 From: Saman Sajedi <30348073+eta32carinae@users.noreply.github.com> Date: Tue, 15 Mar 2022 17:57:02 +0330 Subject: [PATCH 2/2] update GetConfigAction setFilter added for getConfigAction --- src/PAMI/Message/Action/GetConfigAction.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/PAMI/Message/Action/GetConfigAction.php b/src/PAMI/Message/Action/GetConfigAction.php index 327389668..2689dab8f 100644 --- a/src/PAMI/Message/Action/GetConfigAction.php +++ b/src/PAMI/Message/Action/GetConfigAction.php @@ -59,4 +59,15 @@ public function __construct($filename, $category = false) $this->setKey('Category', $category); } } + + /** + * Sets Filter. + * + * @param string $filter. + * + * @return void + */ + public function setFilter($filter) { + $this->setKey('Filter', $filter); + } }