Handler.php 708 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * Handles the update of a monster in the collection.
  4. */
  5. class Handler{
  6. /**
  7. * {@see Entity} to be updated or created.
  8. */
  9. public $entity;
  10. /**
  11. * Database connection.
  12. */
  13. public $db;
  14. /**
  15. * HTTP status code after the operations.
  16. */
  17. public $response;
  18. /**
  19. * Constructor.
  20. *
  21. *
  22. * @param MySQL_connection $db Connection to the database.
  23. * @param Entity $entity Entity to be updated.
  24. */
  25. public function __construct($db, $entity){
  26. $this->db = $db;
  27. $this->entity = $entity;
  28. }
  29. }
  30. ?>