protected function recordObject($object)
	{
		$js      = $this->encoder->encode($object);
		$varName = $this->getVarName($js);

		if ($this->isIterable($object))
		{
			$object = $this->recordObjectContent($object);
		}

		if (!isset($this->configValues[$varName]))
		{
			$this->configValues[$varName] = new ConfigValue($object, $varName);
			$this->jsLengths[$varName]    = strlen($js);
		}
		$this->configValues[$varName]->incrementUseCount();

		return $this->configValues[$varName];
	}
protected function recordObject($object)
	{
		$js      = $this->encoder->encode($object);
		$varName = $this->getVarName($js);

		if ($this->isIterable($object))
		{
			$object = $this->recordObjectContent($object);
		}

		if (!isset($this->configValues[$varName]))
		{
			$this->configValues[$varName] = new ConfigValue($object, $varName);
			$this->jsLengths[$varName]    = strlen($js);
		}
		$this->configValues[$varName]->incrementUseCount();

		return $this->configValues[$varName];
	}
protected function recordObject ( $ object ) { $ js = $ this -> encoder -> encode ( $ object ) ; $ varName = $ this -> getVarName ( $ js ) ; if ( $ this -> isIterable ( $ object ) ) { $ object = $ this -> recordObjectContent ( $ object ) ; } if ( ! isset ( $ this -> configValues [ $ varName ] ) ) { $ this -> configValues [ $ varName ] = new ConfigValue ( $ object , $ varName ) ; $ this -> jsLengths [ $ varName ] = strlen ( $ js ) ; } $ this -> configValues [ $ varName ] -> incrementUseCount ( ) ; return $ this -> configValues [ $ varName ] ; }
Record a given config object as a ConfigValue instance

@param  array|Code|Dictionary $object Original object
@return ConfigValue                   Stored ConfigValue instance
Record a given config object as a ConfigValue instance