original_string: public function transform($lang)
      {
          $lang = $this->entityToArray(Lang::class, $lang);
          return [
              'code'      => $lang['code'],
              'i18n'      => $lang['i18n'],
              'isEnabled' => (bool) $lang['is_enabled'],
              'isDefault' => (bool) $lang['is_default'],
          ];
      }
code: public function transform($lang)
      {
          $lang = $this->entityToArray(Lang::class, $lang);
          return [
              'code'      => $lang['code'],
              'i18n'      => $lang['i18n'],
              'isEnabled' => (bool) $lang['is_enabled'],
              'isDefault' => (bool) $lang['is_default'],
          ];
      }
code_tokens: public function transform ( $ lang ) { $ lang = $ this -> entityToArray ( Lang :: class , $ lang ) ; return [ 'code' => $ lang [ 'code' ] , 'i18n' => $ lang [ 'i18n' ] , 'isEnabled' => ( bool ) $ lang [ 'is_enabled' ] , 'isDefault' => ( bool ) $ lang [ 'is_default' ] , ] ; }
docstring: Transforms lang entity
  
  @param Lang|array $lang Lang entity
  
  @return array
docstring_tokens: Transforms lang entity