Skip to content

Instantly share code, notes, and snippets.

@Swader
Created April 19, 2012 17:33
Show Gist options
  • Save Swader/2422488 to your computer and use it in GitHub Desktop.
Save Swader/2422488 to your computer and use it in GitHub Desktop.
Trying out cocode.io
namespace cocode;
class Cocode {
private $_sMsg;
public function __construct($sMsg = '') {
if (!empty($sMsg)) {
$this->setMessage($sMsg);
}
}
public function setMessage($sMsg) {
$this->_sMsg = $sMsg;
return $this;
}
public function getMessage() {
return $this->_sMsg;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment