<?php
namespace VK_param;
class param_set
{
//var
public $token_conf;
public $token;
public $group_id;
public $data;
public $object;
/**
* @param $token
* @param $conf
* @param $group_id
* @return bool
*
* Function "Event handling"
*/
public function init($token,$conf,$group_id)
{
$this->group_id = $group_id;
$this->token = $token;
$this->token_conf = $conf;
return true;
}
/**
* @param $data
* @return bool
*
* Function "Installation $date"
*/
public function set_data($data)
{
$this->data = $data;
$this->object = $data->object;
return true;
}
public function get_data()
{
return $this->data;
}
/**
* @param $type
* @return mixed|null
*/
public function get($type)
{
switch ($type)
{
case 'group_id':
return $this->group_id;
break;
case 'token':
return $this->token;
break;
case "token_conf":
return $this->token_conf;
break;
}
return false;
}
}