code // This function should only work if $code is null } // Execute the procedure for this action code public function execute() { // Looks for the code in the database and executes the procedure // This and all functions below should only work if $this->code isn't null for obvious reasons } // Checking if a code is still valid public function validate() { // Checks if $this->code is still valid } // Make a code invalid public function invalidate() { // Invalidates the set action code } } /* * Concept * ======= * Action codes are a thing to have the system or something related generate an * md5(?) hashed string that they can enter into a box and have the system respond * by doing something. * Said actions are stored in a database table and can be added, removed and * changed if needed. These actions will probably be stored using JSON. */