Created
July 6, 2014 17:06
-
-
Save sdawncasey/332967a7de3231c76446 to your computer and use it in GitHub Desktop.
Working on a new project
This file contains hidden or 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 | |
class Casey { | |
public $hair = 'brown'; | |
public $eyes = 'brown'; | |
public $loves = array('monkeys', 'SciFi', 'texas', 'music'); | |
} | |
$human = new Casey(); | |
$human->birthday('2015-02-02'); | |
$human->fingers = 10; | |
$human->toes = 10; | |
$human->gender = rand(0, 1) ? 'boy' : 'girl'; | |
$human->cry(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There are Java/C# guys who are crying that you used direct inheritance...how you could deprive your child of the beauty of dependency injection??? :P
Congrats!