original_string: public function setClientLocales($clientLocales): void
      {
          if(!$this->clientLocales)
              $this->clientLocales = new LocaleCollection();
  
          $this->clientLocales->removeAllLocales();
  
          foreach ($clientLocales as $locale) {
              if(is_string($locale)) {
                  $locale = new Locale($locale);
              }
  
              if($locale instanceof Locale) {
                  $this->clientLocales->addLocale($locale);
              }
          }
      }
code: public function setClientLocales($clientLocales): void
      {
          if(!$this->clientLocales)
              $this->clientLocales = new LocaleCollection();
  
          $this->clientLocales->removeAllLocales();
  
          foreach ($clientLocales as $locale) {
              if(is_string($locale)) {
                  $locale = new Locale($locale);
              }
  
              if($locale instanceof Locale) {
                  $this->clientLocales->addLocale($locale);
              }
          }
      }
code_tokens: public function setClientLocales ( $ clientLocales ) : void { if ( ! $ this -> clientLocales ) $ this -> clientLocales = new LocaleCollection ( ) ; $ this -> clientLocales -> removeAllLocales ( ) ; foreach ( $ clientLocales as $ locale ) { if ( is_string ( $ locale ) ) { $ locale = new Locale ( $ locale ) ; } if ( $ locale instanceof Locale ) { $ this -> clientLocales -> addLocale ( $ locale ) ; } } }
docstring: Sets the client locales. You may pass Locale objects or string values.
  @param \Traversable|array $clientLocales
  @throws BadLocaleException
docstring_tokens: Sets the client locales . You may pass Locale objects or string values .