ofc_shape.php 316 B

12345678910111213141516171819202122232425
  1. <?php
  2. class shape_point
  3. {
  4. function shape_point( $x, $y )
  5. {
  6. $this->x = $x;
  7. $this->y = $y;
  8. }
  9. }
  10. class shape
  11. {
  12. function shape( $colour )
  13. {
  14. $this->type = "shape";
  15. $this->colour = $colour;
  16. $this->values = array();
  17. }
  18. function append_value( $p )
  19. {
  20. $this->values[] = $p;
  21. }
  22. }