<commit_before><?php

namespace Bugsnag\Breadcrumbs;

use Countable;
use Iterator;

class Recorder implements Countable, Iterator
{
    /**
     * The maximum number of breadcrumbs to store.
     *
     * @var int
     */
    const MAX_ITEMS = 25;

    /**
     * The recorded breadcrumbs.
     *
     * @var \Bugsnag\Breadcrumbs\Breadcrumb[]
     */
    protected $breadcrumbs = [];<commit_msg>Add key & value types for the breadcrumb Recorder<commit_after><?php

namespace Bugsnag\Breadcrumbs;

use Countable;
use Iterator;

/**
 * @implements Iterator<int, Breadcrumb>
 */
class Recorder implements Countable, Iterator
{
    /**
     * The maximum number of breadcrumbs to store.
     *
     * @var int
     */
    const MAX_ITEMS = 25;

    /**
     * The recorded breadcrumbs.
     *
     * @var \Bugsnag\Breadcrumbs\Breadcrumb[]
     */
    protected $breadcrumbs = [];
{'fraction_non_alphanumeric': 0.11085714285714286, 'fraction_numerical': 0.004571428571428572, 'mean_word_length': 2.5465587044534415, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 4, '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': '3282062', 'n_tokens_mistral': 299, 'n_tokens_neox': 301, 'n_words': 72}