code: public function getRibbonBinObjects($what = 'all')
      {
          $ReturnData = null;
          $what = strtolower($what);
          switch ($what) {
              case 'all':
                  return $this->ribbonBinObjects;
  
                  break;
              case 'names':
              case 'data':
                  if (is_array($this->ribbonBinObjects) && isset($this->ribbonBinObjects[$what])) {
                      $ReturnData = $this->ribbonBinObjects[$what];
                  }
  
                  break;
              case 'types':
                  if (is_array($this->ribbonBinObjects) &&
                      isset($this->ribbonBinObjects['data']) && is_array($this->ribbonBinObjects['data'])) {
                      $tmpTypes = array_keys($this->ribbonBinObjects['data']);
                      $ReturnData = array_unique(array_map([$this, 'getExtensionOnly'], $tmpTypes));
                  } else {
                      $ReturnData = []; // the caller want an array... not null if empty
                  }
  
                  break;
          }
  
          return $ReturnData;
      }
docs: retrieve Binaries Ribbon Objects.
  
  @param string $what
  
  @return null|array