You are here

private function ProxyGenerator::generateLazyPropertiesDefaults in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/common/lib/Doctrine/Common/Proxy/ProxyGenerator.php \Doctrine\Common\Proxy\ProxyGenerator::generateLazyPropertiesDefaults()

Generates the array representation of lazy loaded public properties and their default values.

Parameters

\Doctrine\Common\Persistence\Mapping\ClassMetadata $class:

Return value

string

File

vendor/doctrine/common/lib/Doctrine/Common/Proxy/ProxyGenerator.php, line 358

Class

ProxyGenerator
This factory is used to generate proxy classes. It builds proxies from given parameters, a template and class metadata.

Namespace

Doctrine\Common\Proxy

Code

private function generateLazyPropertiesDefaults(ClassMetadata $class) {
  $lazyPublicProperties = $this
    ->getLazyLoadedPublicProperties($class);
  $values = array();
  foreach ($lazyPublicProperties as $key => $value) {
    $values[] = var_export($key, true) . ' => ' . var_export($value, true);
  }
  return implode(', ', $values);
}