-
-
Save tswicegood/570858 to your computer and use it in GitHub Desktop.
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 | |
// current implementation | |
class HairColor implements ReflectionAnnotation { | |
public $hairColor = ""; | |
} | |
[HairColor(hairColor="purple")] | |
class PurplePeopleEater { } | |
// Travis' thoughts: | |
class HairColor implements \SPL\Annotation { | |
public $hairColor = ''; | |
public function __construct($hairColor) { | |
$this->hairColor = $hairColor; | |
} | |
} | |
[HairColor("purple")] | |
class PurplePeopleEater() { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment