original_string: protected function hydrateOrders()
      {
          if (count($this->query)) {
              Logger::log(static::class . ' gathering query string', LOG_DEBUG);
              foreach ($this->query as $key => $value) {
                  if ($key === self::API_ORDER_FIELD && is_array($value)) {
                      foreach ($value as $field => $direction) {
                          $this->order->addOrder($field, $direction);
                      }
                  }
              }
          }
      }
code: protected function hydrateOrders()
      {
          if (count($this->query)) {
              Logger::log(static::class . ' gathering query string', LOG_DEBUG);
              foreach ($this->query as $key => $value) {
                  if ($key === self::API_ORDER_FIELD && is_array($value)) {
                      foreach ($value as $field => $direction) {
                          $this->order->addOrder($field, $direction);
                      }
                  }
              }
          }
      }
code_tokens: protected function hydrateOrders ( ) { if ( count ( $ this -> query ) ) { Logger :: log ( static :: class . ' gathering query string' , LOG_DEBUG ) ; foreach ( $ this -> query as $ key => $ value ) { if ( $ key === self :: API_ORDER_FIELD && is_array ( $ value ) ) { foreach ( $ value as $ field => $ direction ) { $ this -> order -> addOrder ( $ field , $ direction ) ; } } } } }
docstring: Hydrate order from request
docstring_tokens: Hydrate order from request