public function __construct($type, $name, $config = [])
{
parent::__construct($config);
if (!$this->checkType($type)) {
throw new Exception('wrong type');
}
if (!$this->checkName($name)) {
throw new Exception('wrong name');
}
$this->_type = $type;
$this->_name = $name;
}