public function getReservedMethodsInstance($filename = null) { $instance = StructReservedMethod::instance($filename); if ($this->isArray()) { $instance = StructArrayReservedMethod::instance($filename); } return $instance; }