<commit_before><?php


namespace Laasti\Directions;

use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Zend\Diactoros\Response;

interface RouterInterface
{

    public function add($httpMethod, $route, $handler);

    /**
     * @return Route
     */
    public function find(ServerRequestInterface $request, ResponseInterface $response);
    
    /**
     * @return Response
     */
    public function findAndDispatch(ServerRequestInterface $request, ResponseInterface $response);
    
    /**
     * @return Response
     */
    public function dispatch(Route $route, ServerRequestInterface $request = null, ResponseInterface $response = null);
}<commit_msg>Update routerinterface<commit_after><?php


namespace Laasti\Directions;

use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Zend\Diactoros\Response;

interface RouterInterface
{

    public function add($httpMethod, $route, $handler);

    /**
     * @return ServerRequestInterface
     */
    public function find(ServerRequestInterface $request, ResponseInterface $response);

    public function findRoute($method, $route);
    
    /**
     * @return Response
     */
    public function findAndDispatch(ServerRequestInterface $request, ResponseInterface $response);
    
    /**
     * @return Response
     */
    public function dispatch(ServerRequestInterface $request = null, ResponseInterface $response = null);

    /**
     * @return mixed
     */
    public function dispatchRoute(Route $route);
}
{'fraction_non_alphanumeric': 0.10129032258064516, 'fraction_numerical': 0.0, 'mean_word_length': 3.7142857142857144, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2324281', 'n_tokens_mistral': 412, 'n_tokens_neox': 396, 'n_words': 97}