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
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

View File

@ -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;