original_string: protected function csv($key = null, $default = null)
      {
          if (empty($this->contentAsArray)) {
              $content = $this->getContent();
              $data = DataFormatter::csvToArray($content);
  
              if (!empty($data)) {
                  $this->contentAsArray = ResourcesWrapper::wrapResources($data);
              }
          }
  
          if (null === $key) {
              return $this->contentAsArray;
          } else {
              return array_get($this->contentAsArray, $key, $default);
          }
      }
code: protected function csv($key = null, $default = null)
      {
          if (empty($this->contentAsArray)) {
              $content = $this->getContent();
              $data = DataFormatter::csvToArray($content);
  
              if (!empty($data)) {
                  $this->contentAsArray = ResourcesWrapper::wrapResources($data);
              }
          }
  
          if (null === $key) {
              return $this->contentAsArray;
          } else {
              return array_get($this->contentAsArray, $key, $default);
          }
      }
code_tokens: protected function csv ( $ key = null , $ default = null ) { if ( empty ( $ this -> contentAsArray ) ) { $ content = $ this -> getContent ( ) ; $ data = DataFormatter :: csvToArray ( $ content ) ; if ( ! empty ( $ data ) ) { $ this -> contentAsArray = ResourcesWrapper :: wrapResources ( $ data ) ; } } if ( null === $ key ) { return $ this -> contentAsArray ; } else { return array_get ( $ this -> contentAsArray , $ key , $ default ) ; } }
docstring: Returns CSV payload data
  
  @param null $key
  @param null $default
  
  @return array|mixed|null
docstring_tokens: Returns CSV payload data