Initial commit

This commit is contained in:
Jack-Benny Persson 2014-07-26 15:01:16 +02:00
commit aa70a9583a

31
class.php Normal file
View File

@ -0,0 +1,31 @@
<?php
class CellSynt
{
public $username;
public $password;
public $origType;
public $originator;
public $msg;
public function __construct($username, $password, $origType = "alpha",
$originator = "Cellsynt")
{
$this->username = $username;
$this->password = $password;
$this->origType = $origType;
$this->originator = $originator;
}
public function sendMsg($msg)
{
$this->msg = $msg;
return "User: $this->username, Password: $this->password" .
", OrigType: $this->origType, Originator: " .
"$this->originator, MSG: $this->msg";
}
}
$SMS = new CellSynt("jake", "testpw", "numeric", "123456666");
print $SMS->sendMsg("Detta är mitt SMS!") . "\n";
?>