<?php
namespace Models;

class autonomus {
	public $f3, $sets, $config;

	function __construct($f3, $sets, $config) {
		$this->f3=$f3;
		$this->sets=$sets;
        $this->config=$config;
	}

	function ticket($type, $sum, $return_bt=null, $lines=array()) {
		/*if($type=='sale') {
			$cheq=$this->sets['title']."\nОплата на сумму ".$sum."\nПрошла успешно";
		}
		else {
			$cheq=$this->sets['title']."\nВозврат на сумму ".$sum."\nПрошел успешно";
		}*/
		return array(
			'success'=>true,
			'txt'=>'',
			'slip'=>'',
			'pan'=>0,
			'transid'=>0,
			'authcode'=>0
		);
	}

	function z($change) {
		//$cheq=$this->sets['title']."\nСмена успешно закрыта";
		return array(
			'success'=>true,
			'txt'=>'',
			'slip'=>'',
			'pan'=>0,
			'transid'=>0,
			'authcode'=>0
		);
	}

	function x($change) {
		//$cheq='';
		return array(
			'success'=>true,
			'txt'=>'',
			'slip'=>'',
			'pan'=>0,
			'transid'=>0,
			'authcode'=>0
		);
	}
}