From 4dc56a3ddebee913d0dba733253d5b39e1f91ae7 Mon Sep 17 00:00:00 2001 From: Pierre Date: Sun, 29 Apr 2018 13:59:54 +0200 Subject: [PATCH] Created AccountImageSettings object --- classes/models/AccountImageSettings.php | 56 +++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 classes/models/AccountImageSettings.php diff --git a/classes/models/AccountImageSettings.php b/classes/models/AccountImageSettings.php new file mode 100644 index 0000000..7f91954 --- /dev/null +++ b/classes/models/AccountImageSettings.php @@ -0,0 +1,56 @@ +visibility_level = $visibility_level; + } + + public function get_visibility_level() : int { + return $this->visibility_level; + } + + //Set and get account image path + public function set_image_path(string $image_path){ + $this->image_path = $image_path == "" ? null : $image_path; + } + + public function has_image_path() : bool { + return $this->image_path != null; + } + + public function get_image_path() : string { + return $this->image_path != null ? $this->image_path : "null"; + } +} \ No newline at end of file