Changed properties from public to private

This commit is contained in:
Jack-Benny Persson 2014-08-17 12:07:01 +02:00
parent 1bdd390dec
commit 7eafe35c86
2 changed files with 20 additions and 15 deletions

View File

@ -1,7 +1,12 @@
0.1 - 2014-07-31 0.2 - 2014-08-17
First relase of the class 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 0.1.1 - 2014-08-02
Added two examples of how to use the class 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 Note: For more history information, please see the git log

View File

@ -19,7 +19,7 @@
/* /*
Version 0.1.1 Version 0.2
Usage example: Usage example:
$MySMS = new Cellsynt("myuser", "mYpaSS", "alpha", "Test"); $MySMS = new Cellsynt("myuser", "mYpaSS", "alpha", "Test");
@ -28,18 +28,18 @@
class Cellsynt class Cellsynt
{ {
public $username; private $username;
public $password; private $password;
public $origType; private $origType;
public $originator; private $originator;
public $phone; private $phone;
public $concat; private $concat;
public $charset; private $charset;
public $type; private $type;
public $expiry; private $expiry;
public $msg; private $msg;
public function __construct($username, $password, $origType = "alpha", function __construct($username, $password, $origType = "alpha",
$originator = "Cellsynt", $concat = 6, $originator = "Cellsynt", $concat = 6,
$charset = "UTF-8", $type = "text") $charset = "UTF-8", $type = "text")
{ {
@ -52,7 +52,7 @@ class Cellsynt
$this->type = $type; $this->type = $type;
} }
public function sendSMS($phoneNr, $msg, $expiry = "") function sendSMS($phoneNr, $msg, $expiry = "")
{ {
$this->msg = $msg; $this->msg = $msg;
$this->phoneNr = $phoneNr; $this->phoneNr = $phoneNr;