From f720a9e62f17ac942c68ef0c7237bd3bd126c700 Mon Sep 17 00:00:00 2001 From: Sander Date: Tue, 14 Nov 2023 13:18:11 +0100 Subject: [PATCH] Deleted unused method --- src/Transaction/Request/Request.php | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/src/Transaction/Request/Request.php b/src/Transaction/Request/Request.php index e9955fa..c91911c 100644 --- a/src/Transaction/Request/Request.php +++ b/src/Transaction/Request/Request.php @@ -78,32 +78,6 @@ public function jsonSerialize(): mixed return $this->data; } - /** - * Redirect all method calls prefixed with 'get' or 'set' - * to check if a param exists with that name - * Return or set the param if it does - * - * @param string $method - * @param array $args - * @return mixed - */ - public function __call($method, $args) - { - $prefix = substr($method, 0, 3); - $param = substr($method, 3); - $arg = isset($args[0]) ? $args[0] : null; - - if ($prefix === 'set') - { - $this->offsetSet($param, $arg); - } elseif ($prefix === 'get') - { - return $this->offsetGet($param); - } - - throw new Exception("Call to undefined method " . __CLASS__ . '::' . $method); - } - /** Implement Arrayable */ public function toArray(): array {