public function __construct($lang_type, $file, $lineno, $parent, $msgdecls) { parent::__construct($file, $lineno, null, 'instance', null, null, $msgdecls); $this->lang_type = $lang_type; $this->define_message('to_string'); $this->define_message('hash'); }
public function __construct($file, $lineno, $unique, $type, $name, $parent, $msgdecls) { foreach ($msgdecls as $msgdecl) { if ($msgdecl->is_static) { $this->static_msgdecls[$msgdecl->name] = $msgdecl; } else { $this->instance_msgdecls[$msgdecl->name] = $msgdecl; } } parent::__construct($file, $lineno, $unique, $type, $name, $parent, $this->static_msgdecls); $this->define_message('create'); }