protected function insert(IEvent $event)
    {
        $statement = $this->connection->prepare(
            'INSERT INTO ' . $this->table . ' VALUES(:endpoint, :method, :reference, :request)'
        );

        $statement->execute(
            [
                ':endpoint' => $event->getEndpoint(),
                ':method' => $event->getMethod(),
                ':reference' => $event->getReference(),
                ':request' => $event->getRequest(),
            ]
        );

        $id = $this->connection->lastInsertId();

        $event->setId($id);

        return $id;
    }