Skip to content

Instantly share code, notes, and snippets.

@sdawncasey
Created July 6, 2014 17:06
Show Gist options
  • Save sdawncasey/332967a7de3231c76446 to your computer and use it in GitHub Desktop.
Save sdawncasey/332967a7de3231c76446 to your computer and use it in GitHub Desktop.
Working on a new project
<?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();
@jharmn
Copy link

jharmn commented Jul 7, 2014

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment