* * 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:----nrfNNhmL9hI6XccS2E+J3ghQr3YBmI2+0XrO3Jbs0/9MO1Un9Snz8rOjf7T4+F8C07PPofgKUVwRH7EDX6YA/ubV9sy9YUjq5RQzFNtmN+Wv5yihGyurem5rGh8Zg5S15LnOtw//OISQUv07keBctnjaLeMzE/hfT7NrvBAl3DxVetaCIF1MhA4A+kOi56gbg7w6oLF/MAhsTvKQmMKOQ4pluf4712o8W206WEplGKnu5ylQ0yslfdCky6YYg7G2GYgSYgbyACqqWJ1/aqYyx9vhjzRlcu6sI8v4fYJHjXffYZaczzZ3IRqAhZCuFjKVDq4BKJRur/S0agC4OkJaEtBVTHZwVT7UYlmA1pBrZa91yw/0YQ+qvpu8U/xa/CVWSQVpQFj/QhMZTPX6B8Tdve71+iBIOZ4/6bn2gQ94ptj9rmIwE7ae306ewrmXCoMumh8U2oq67eme6q0UpZcq11glBzOtIGIeJr+pi7G7jH9AdXhS8gAKxsk5LK1mo+VQBQYrI7rZYKYpOGS8yKdegUEMbzf+U0QzRIbLGyYpp693Y7S61KdQ3dROyfryXn8ejGneNRnA8727n+yPvexvWMiCyW5xRvWWdxwXlsytMS2zQznWs3FUyjMJhg2LSefnez38Rc2qibuw3wQFHvN4ahkL5JK9Dwv6Ygcj4jT7PEI=----ATTACHMENT:----Mzk2OTQ0MDU4MTk1Mzg3MSA2Nzg0OTcyMjc4OTk5ODAgOTA2NjQwNDA3ODQ3MjA3Mg==