Zend\Code\Generator\ValueGenerator::setValue PHP Method

setValue() public method

public setValue ( mixed $value ) : ValueGenerator
$value mixed
return ValueGenerator
    public function setValue($value)
    {
        $this->value = $value;
        return $this;
    }

Usage Example

コード例 #1
0
 /**
  * Export the $config array in a human readable format
  *
  * @param  array $config
  * @param  integer $space the initial indentation value
  * @return string
  */
 public static function exportConfig($config, $indent = 0)
 {
     if (empty(static::$valueGenerator)) {
         static::$valueGenerator = new ValueGenerator();
     }
     static::$valueGenerator->setValue($config);
     static::$valueGenerator->setArrayDepth($indent);
     return static::$valueGenerator;
 }
All Usage Examples Of Zend\Code\Generator\ValueGenerator::setValue