Monday, July 25, 2005

My Pretty Polymorph Pony

Approach #1:
find(0, 1, 1, 0);

Approach #2:
find(array("legs" => 0, "heads" => 1, "feet" = 1, "tails" => 0))

Approach #3:
$betsy = new Cow();
$betsy->setLegs(0);
$betsy->setHeads(1);
$betsy->setFeet(1);
$betsy->setTails(0);

find($betsy);


Which do you like?

No comments: