<commit_before><?php
/**
 * This file is part of the LdapTools package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace LdapTools\Object;

/**
 * Represents a collection of LdapObject classes. Allows for iteration, filtering, etc.
 *
 * @author <NAME> <<EMAIL>>
 */
class LdapObjectCollection implements \IteratorAggregate
{
    /**
     * @var LdapObject[]
     */
    protected $objects = [];

    /**
     * Add LdapObjects to the collection.
     *
     * @param LdapObject[] $ldapObjects
     */
    public function add(LdapObject ...$ldapObjects)
    {
        foreach ($ldapObjects as $ldapObject) {
            $this->objects[] = $ldapObject;
        }
    }

    /**
     * Allows this object to be iterated over.<commit_msg>Minor phpdoc improvement.<commit_after><?php
/**
 * This file is part of the LdapTools package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace LdapTools\Object;

/**
 * Represents a collection of LdapObject classes. Allows for iteration, filtering, etc.
 *
 * @author <NAME> <<EMAIL>>
 */
class LdapObjectCollection implements \IteratorAggregate
{
    /**
     * @var LdapObject[]
     */
    protected $objects = [];

    /**
     * Add LdapObjects to the collection.
     *
     * @param LdapObject[] ...$ldapObjects
     */
    public function add(LdapObject ...$ldapObjects)
    {
        foreach ($ldapObjects as $ldapObject) {
            $this->objects[] = $ldapObject;
        }
    }

    /**
     * Allows this object to be iterated over.
{'fraction_non_alphanumeric': 0.12247255921432698, 'fraction_numerical': 0.0, 'mean_word_length': 2.600831600831601, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '7650733', 'n_tokens_mistral': 512, 'n_tokens_neox': 524, 'n_words': 161}