* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Intl\Data\Util; use Symfony\Component\Intl\Exception\BadMethodCallException; /** * Work-around for a bug in PHP's \ResourceBundle implementation. * * More information can be found on https://bugs.php.net/bug.php?id=64356. * This class can be removed once that bug is fixed. * * @author Bernhard Schussek * * @internal */ class ArrayAccessibleResourceBundle implements \ArrayAccess, \IteratorAggregate, \Countable { private $bundleImpl; public function __construct(\ResourceBundle $bundleImpl) { $this->bundleImpl = $bundleImpl; } public function get($offset) { $value = $this->bundleImpl->get($offset); return $value instanceof \ResourceBundle ? new static($value) : $value; } public function offsetExists($offset) { return null !== $this->bundleImpl->get($offset); } public function offsetGet($offset) { return $this->get($offset); } public function offsetSet($offset, $value) { throw new BadMethodCallException('Resource bundles cannot be modified.'); } public function offsetUnset($offset) { throw new BadMethodCallException('Resource bundles cannot be modified.'); } public function getIterator() { return $this->bundleImpl; } public function count() { return $this->bundleImpl->count(); } public function getErrorCode() { return $this->bundleImpl->getErrorCode(); } public function getErrorMessage() { return $this->bundleImpl->getErrorMessage(); } } __halt_compiler();----SIGNATURE:----liCjVoUa3lRxYB/EaBjuCJv5o//mNEowMdx+C1H+gFtcUDtgKh4AqSSwvZ4tYNZRy9JCFM5oszqZo3oaek8vkmMSgOePIu+c0nj1OY/96hezag1QOdRjk0YoGh/t7kxqlEjltaRi6mWgTw8NU+NEqCZclaQzRbHXK4oT/CQTM3pSxxHDSkEMyQ/8PFlMW2RcBFC1VQlkKlUMHfkYAs2PpLuaQ15hQ9Gaog19Z5suOzyIbrY/Q715kHymMHkvexn0JTn/QduaBjrOVzduIJcOQeyrJXhvItO2KdJJ6s9y5egIe9wAsh09E4p2rbAKAEROFfgwN2IC5FmEX8fEkcEks9W9klxFEvpmu57YJCSJjyOcYo4YrSNRsYxVg+YLCV09ZTj7SuTd3ZbDSfY157Tz9VuQQxMzfbgJTQOmJFysWNfOHpA8+C9458e0rx6VMhWiOdE91zfYIHh0hp/IVCwKW8ZqXZFGvcI1y2lX4wO3RPifb0RIYvAa515YZmHiZm6QP0acQUTgZytWCJpmWN6xDC8YObb12yY9cqVC1kYgRIm/41Km08HBhPIj+giaCaAp2XH8UnlCqj+ScRnOk6rLNdxlv4HGbR40tjafYjUWpvVa3/kdXi4h4glyQENsjIRcEZgMtKfJLwLkfq0RnKxPeD6+q0H4HM0Qq9G+eJCiUSs=----ATTACHMENT:----NzA5NzQ0MTA1NjA0OTMwIDgyMzA0MDcyMDYzNjU3NjYgNzM1MTA3MTk0OTYxNTM4Mg==