| 123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- /**
- * Handles the update of a monster in the collection.
- */
- class Handler{
- /**
- * {@see Entity} to be updated or created.
- */
- public $entity;
- /**
- * Database connection.
- */
- public $db;
- /**
- * HTTP status code after the operations.
- */
- public $response;
- /**
- * Constructor.
- *
- *
- * @param MySQL_connection $db Connection to the database.
- * @param Entity $entity Entity to be updated.
- */
- public function __construct($db, $entity){
- $this->db = $db;
- $this->entity = $entity;
- }
- }
- ?>
|