Created
March 14, 2014 18:44
-
-
Save AlexanderC/9554119 to your computer and use it in GitHub Desktop.
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
<?php | |
/** | |
* @author AlexanderC <[email protected]> | |
*/ | |
namespace Life; | |
class Mood extends Life | |
{ | |
public function __construct(Mood $previous) | |
{ | |
if($previous->getStatus() === Life::STATUS_SAD) { | |
$previous->setStatus(Life::STATUS_HAPPY | Life::STATUS_AWESOME); | |
} | |
$this->setStatus(Life::STATUS_HAPPY | Life::STATUS_AWESOME); | |
$this->lockStatus(Life::LOCK_EXCLUSIVE | Life::LOCK_PERMANENT); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment