/** * @return StructReservedMethod */ public static function instance() { return StructReservedMethod::instance(__DIR__ . '/../resources/struct_reserved_keywords.yml'); }
/** * @param $filename * @return StructReservedMethod|StructArrayReservedMethod */ public function getReservedMethodsInstance($filename = null) { $instance = StructReservedMethod::instance($filename); if ($this->isArray()) { $instance = StructArrayReservedMethod::instance($filename); } return $instance; }