<?php

namespace Autogedal\Extend\Block\Answer;

use Magento\Customer\Model\Context;
use Magento\Customer\Model\Url;
use Magento\Framework\View\Element\Template;

/**
 * Answer form block
 *
 * @api
 * @author      Magento Core Team <core@magentocommerce.com>
 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
 */
class Form extends \Magediary\ProductQuestion\Block\Answer\Form
{
     /**
     * Get question id
     *
     * @return int
     */
    protected function getQuestionId()
    {
        return $this->getData('question_id') ?? $this->getRequest()->getParam('question_id');
    }

    /**
     * Get product id
     *
     * @return int
     */
    public function getProductId()
    {
        return $this->getData('product_id') ?? $this->getRequest()->getParam('product_id');
    }
}
