* @license GNU General Public License, version 2 (GPL-2.0) */ namespace phpbbstudio\dice\controller; /** * phpBB Studio's Dice Main controller interface. */ interface main_interface { /** * Create a roll. * * @param int $forum_id The forum identifier * @param int $topic_id The topic identifier * @param int $post_id The post identifier * @param int $poster_id The poster identifier * @param string $hash The generated link hash * @return \phpbb\json_response * @throws \phpbb\exception\http_exception * @access public */ public function add($forum_id, $topic_id, $post_id, $poster_id, $hash); /** * Edit a roll. * * @param int $roll_id The roll identifier * @return \phpbb\json_response * @throws \phpbb\exception\http_exception * @access public */ public function edit($roll_id); /** * Delete a roll. * * @param int $roll_id The roll identifier * @return void \phpbb\json_response * @throws \phpbb\exception\http_exception * @access public */ public function delete($roll_id); /** * Display a dice testing page. * * @return \Symfony\Component\HttpFoundation\Response * @throws \phpbb\exception\http_exception * @access public */ public function page(); }