original_string: public function determineListDisplayStrategy(ModelRelationData $data)
      {
          switch ($data->type) {
  
              case RelationType::BELONGS_TO:
              case RelationType::BELONGS_TO_THROUGH:
              case RelationType::HAS_ONE:
              case RelationType::MORPH_ONE:
              case RelationType::MORPH_TO:
                  return ListDisplayStrategy::RELATION_REFERENCE;
  
              case RelationType::BELONGS_TO_MANY:
              case RelationType::HAS_MANY:
              case RelationType::MORPH_MANY:
              case RelationType::MORPH_TO_MANY:
              case RelationType::MORPHED_BY_MANY:
                  return ListDisplayStrategy::RELATION_COUNT;
          }
  
          return null;
      }
code: public function determineListDisplayStrategy(ModelRelationData $data)
      {
          switch ($data->type) {
  
              case RelationType::BELONGS_TO:
              case RelationType::BELONGS_TO_THROUGH:
              case RelationType::HAS_ONE:
              case RelationType::MORPH_ONE:
              case RelationType::MORPH_TO:
                  return ListDisplayStrategy::RELATION_REFERENCE;
  
              case RelationType::BELONGS_TO_MANY:
              case RelationType::HAS_MANY:
              case RelationType::MORPH_MANY:
              case RelationType::MORPH_TO_MANY:
              case RelationType::MORPHED_BY_MANY:
                  return ListDisplayStrategy::RELATION_COUNT;
          }
  
          return null;
      }
code_tokens: public function determineListDisplayStrategy ( ModelRelationData $ data ) { switch ( $ data -> type ) { case RelationType :: BELONGS_TO : case RelationType :: BELONGS_TO_THROUGH : case RelationType :: HAS_ONE : case RelationType :: MORPH_ONE : case RelationType :: MORPH_TO : return ListDisplayStrategy :: RELATION_REFERENCE ; case RelationType :: BELONGS_TO_MANY : case RelationType :: HAS_MANY : case RelationType :: MORPH_MANY : case RelationType :: MORPH_TO_MANY : case RelationType :: MORPHED_BY_MANY : return ListDisplayStrategy :: RELATION_COUNT ; } return null ; }
docstring: Determines a list display strategy string for given relation data.
  
  @param ModelRelationData $data
  @return string|null
docstring_tokens: Determines a list display strategy string for given relation data .