src/Normalizer/Normalizer.php
protected function convertValue($data)
    {
        if ($this->isTraversable($data)) {
            return $this->recursiveConvertArray($data);
        }

        if (is_object($data)) {
            return $this->convertObject($data) ?: null;
        }

        return $data;
    }
protected function convertValue($data)
    {
        if ($this->isTraversable($data)) {
            return $this->recursiveConvertArray($data);
        }

        if (is_object($data)) {
            return $this->convertObject($data) ?: null;
        }

        return $data;
    }
protected function convertValue ( $ data ) { if ( $ this -> isTraversable ( $ data ) ) { return $ this -> recursiveConvertArray ( $ data ) ; } if ( is_object ( $ data ) ) { return $ this -> convertObject ( $ data ) ? : null ; } return $ data ; }
Conversts a given value into a traversable one.

@param mixed $data

@return mixed
Conversts a given value into a traversable one .