From 7eafe35c8684a8f701f1e2e752b6373d17054a84 Mon Sep 17 00:00:00 2001 From: Jack-Benny Persson Date: Sun, 17 Aug 2014 12:07:01 +0200 Subject: [PATCH] Changed properties from public to private --- HISTORY | 9 +++++++-- cellsyntClass.php | 26 +++++++++++++------------- 2 files changed, 20 insertions(+), 15 deletions(-) diff --git a/HISTORY b/HISTORY index d49858e..64592f4 100644 --- a/HISTORY +++ b/HISTORY @@ -1,7 +1,12 @@ -0.1 - 2014-07-31 - First relase of the class +0.2 - 2014-08-17 + Changed properties from public to private and removed + public keyword from the functions since this is the + defualt anyway + 0.1.1 - 2014-08-02 Added two examples of how to use the class +0.1 - 2014-07-31 + First relase of the class Note: For more history information, please see the git log diff --git a/cellsyntClass.php b/cellsyntClass.php index b0745e1..d83faeb 100644 --- a/cellsyntClass.php +++ b/cellsyntClass.php @@ -19,7 +19,7 @@ /* - Version 0.1.1 + Version 0.2 Usage example: $MySMS = new Cellsynt("myuser", "mYpaSS", "alpha", "Test"); @@ -28,18 +28,18 @@ class Cellsynt { - public $username; - public $password; - public $origType; - public $originator; - public $phone; - public $concat; - public $charset; - public $type; - public $expiry; - public $msg; + private $username; + private $password; + private $origType; + private $originator; + private $phone; + private $concat; + private $charset; + private $type; + private $expiry; + private $msg; - public function __construct($username, $password, $origType = "alpha", + function __construct($username, $password, $origType = "alpha", $originator = "Cellsynt", $concat = 6, $charset = "UTF-8", $type = "text") { @@ -52,7 +52,7 @@ class Cellsynt $this->type = $type; } - public function sendSMS($phoneNr, $msg, $expiry = "") + function sendSMS($phoneNr, $msg, $expiry = "") { $this->msg = $msg; $this->phoneNr = $phoneNr;