Sonata\Exporter\Source\PropelCollectionSourceIterator::getValue PHP Method

getValue() protected method

protected getValue ( $value ) : null | string
$value
return null | string
    protected function getValue($value)
    {
        if (is_array($value) || $value instanceof \Traversable) {
            $value = null;
        } elseif ($value instanceof \DateTime) {
            $value = $value->format($this->dateTimeFormat);
        } elseif (is_object($value)) {
            $value = (string) $value;
        }
        return $value;
    }