Skip to content

Instantly share code, notes, and snippets.

@tswicegood
Created September 8, 2010 21:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tswicegood/570852 to your computer and use it in GitHub Desktop.
Save tswicegood/570852 to your computer and use it in GitHub Desktop.
<?php
class HairColor extends ReflectionAnnotation {
$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