Skip to content

Instantly share code, notes, and snippets.

@ubermuda
Created January 29, 2010 16:58
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 ubermuda/289887 to your computer and use it in GitHub Desktop.
Save ubermuda/289887 to your computer and use it in GitHub Desktop.
<?php
class CarSport extends Car
{
public function getMaxSpeed()
{
return 230;
}
}
class Car1980 extends Car
{
public function getMaxSpeed()
{
return 120;
}
}
@alexandresalome
Copy link

I think speed should be a value object.

@ubermuda
Copy link
Author

Certainly yes :)

@alexandresalome
Copy link

Please give me 10 more years to finish this review.

@ubermuda
Copy link
Author

with pleasure

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