From f348112072abc48a83f0762be13b3f992851fbd2 Mon Sep 17 00:00:00 2001 From: Kirtan Gajjar Date: Mon, 1 Oct 2018 11:50:05 +0530 Subject: [PATCH] Make get and set methods of Option model static Signed-off-by: Kirtan Gajjar --- php/EE/Model/Option.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/php/EE/Model/Option.php b/php/EE/Model/Option.php index f026b0a87..3900193d2 100644 --- a/php/EE/Model/Option.php +++ b/php/EE/Model/Option.php @@ -20,7 +20,7 @@ class Option extends Base { * @throws \Exception * @return bool Key set or not */ - public function set( string $key, string $value ) { + public static function set( string $key, string $value ) { $existing_key = static::find( $key ); if ( empty( $existing_key ) ) { @@ -45,7 +45,7 @@ public function set( string $key, string $value ) { * @throws \Exception * @return bool|Option */ - public function get( string $key ) { + public static function get( string $key ) { $option = static::find( $key ); return false === $option ? false : $option->value;