Files
FOSSBilling/bb-modules/Formbuilder/Api/Guest.php
T

39 lines
839 B
PHP

<?php
/**
* BoxBilling
*
* @copyright BoxBilling, Inc (http://www.boxbilling.com)
* @license Apache-2.0
*
* Copyright BoxBilling, Inc
* This source file is subject to the Apache-2.0 License that is bundled
* with this source code in the file LICENSE
*/
/**
* Custom forms
*/
namespace Box\Mod\Formbuilder\Api;
class Guest extends \Api_Abstract
{
/**
* Get custom order form details for product
*
* @param int $product_id - Product id
*
* @return array
* @throws Box_Exception
*/
public function get($data)
{
$required = array(
'id' => 'Form id was not passed',
);
$this->di['validator']->checkRequiredParamsForArray($required, $data);
$service = $this->getService();
return $service->getForm($data['id']);
}
}