<commit_before><commit_msg>BB-17585: Automatically select product variant when navigating to PDP from shopping list or order (#25286)<commit_after><?php

namespace Oro\Component\Layout\Tests\Unit\Stubs;

use Oro\Component\Layout\DataAccessor;

class DataAccessorStub extends DataAccessor
{
    /**
     * @var array
     */
    private $data;

    /**
     * @param array $data
     */
    public function __construct(array $data)
    {
        $this->data = $data;
    }

    /**
     * {@inheritdoc}
     */
    public function offsetGet($name)
    {
        return $this->data[$name];
    }

    /**
     * {@inheritdoc}
     */
    public function offsetExists($name)
    {
        return array_key_exists($name, $this->data);
    }
}
{'fraction_non_alphanumeric': 0.13008130081300814, 'fraction_numerical': 0.013550135501355014, 'mean_word_length': 2.4212962962962963, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6023888', 'n_tokens_mistral': 235, 'n_tokens_neox': 224, 'n_words': 49}