-
-
Save Swader/2422488 to your computer and use it in GitHub Desktop.
Trying out cocode.io
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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