code: public function getAcceptableContentTypes()
      {
          if ($this->_contentTypes === null) {
              if ($this->headers->get('Accept') !== null) {
                  $this->_contentTypes = $this->parseAcceptHeader($this->headers->get('Accept'));
              } else {
                  $this->_contentTypes = [];
              }
          }
  
          return $this->_contentTypes;
      }
docs: Returns the content types acceptable by the end user.
  
  This is determined by the `Accept` HTTP header. For example,
  
  ```php
  $_SERVER['HTTP_ACCEPT'] = 'text/plain; q=0.5, application/json; version=1.0, application/xml; version=2.0;';
  $types = $request->getAcceptableContentTypes();
  print_r($types);
  // displays:
  // [
  //     'application/json' => ['q' => 1, 'version' => '1.0'],
  //      'application/xml' => ['q' => 1, 'version' => '2.0'],
  //           'text/plain' => ['q' => 0.5],
  // ]
  ```
  
  @return array the content types ordered by the quality score. Types with the highest scores
  will be returned first. The array keys are the content types, while the array values
  are the corresponding quality score and other parameters as given in the header.