original_string: protected function getCastType($key)
      {
          if ($this->isCustomDateTimeCast($this->getCasts()[$key])) {
              return 'custom_datetime';
          }
  
          if ($this->isDecimalCast($this->getCasts()[$key])) {
              return 'decimal';
          }
  
          return trim(strtolower($this->getCasts()[$key]));
      }
code: protected function getCastType($key)
      {
          if ($this->isCustomDateTimeCast($this->getCasts()[$key])) {
              return 'custom_datetime';
          }
  
          if ($this->isDecimalCast($this->getCasts()[$key])) {
              return 'decimal';
          }
  
          return trim(strtolower($this->getCasts()[$key]));
      }
code_tokens: protected function getCastType ( $ key ) { if ( $ this -> isCustomDateTimeCast ( $ this -> getCasts ( ) [ $ key ] ) ) { return 'custom_datetime' ; } if ( $ this -> isDecimalCast ( $ this -> getCasts ( ) [ $ key ] ) ) { return 'decimal' ; } return trim ( strtolower ( $ this -> getCasts ( ) [ $ key ] ) ) ; }
docstring: Get the type of cast for a model attribute.
  
  @param  string  $key
  @return string
docstring_tokens: Get the type of cast for a model attribute .