protected function determineModelName(array $attributes)
    {
        $keyName = $this->getTypeKeyName();

        return isset($attributes[$keyName]) ?
            $this->getModelDeterminer()->getMediaModelName($attributes[$keyName]) :
            $this->getModelDeterminer()->getDefaultMediaModelName();
    }
protected function determineModelName(array $attributes)
    {
        $keyName = $this->getTypeKeyName();

        return isset($attributes[$keyName]) ?
            $this->getModelDeterminer()->getMediaModelName($attributes[$keyName]) :
            $this->getModelDeterminer()->getDefaultMediaModelName();
    }
protected function determineModelName ( array $ attributes ) { $ keyName = $ this -> getTypeKeyName ( ) ; return isset ( $ attributes [ $ keyName ] ) ? $ this -> getModelDeterminer ( ) -> getMediaModelName ( $ attributes [ $ keyName ] ) : $ this -> getModelDeterminer ( ) -> getDefaultMediaModelName ( ) ; }
Determines the model name by type

@param array $attributes
@return string
Determines the model name by type