<?php

/**

 * SensFRX Main Class of App

 *

 */

namespace SensFRX\AdvanceRules;

use SensFRX\Common\ApiCalls;

/**

 * Class AdvanceRules

 *

 * @package AdvanceRules

 */

class AdvanceRules {

	private $objAPI; 

	public function __construct($objAPI) {

		$this->objAPI = $objAPI;

	}

	public function getAdvanceRules() {

		$method = 'GET';

		$url = '/rules/advanced';

		return $this->objAPI->callAPI($method, $url);

	}

	public function postAdvanceRules($rulesInfo) {

		$method = 'POST';

		$url = '/rules/advanced';

		return $this->objAPI->callAPI($method, $url, $rulesInfo);

	}

}

