/** * @testdox getVarName() returns the assigned variable name */ public function testGetVarName() { $configValue = new ConfigValue([], 'foo'); $this->assertSame('foo', $configValue->getVarName()); }
/** * Encode a ConfigValue instance into JavaScript * * @param ConfigValue $configValue * @return string */ protected function encodeConfigValue(ConfigValue $configValue) { return $configValue->isDeduplicated() ? $configValue->getVarName() : $this->encode($configValue->getValue()); }