<commit_before><?php

/*
 * This file is part of the Scribe Mantle Bundle.
 *
 * (c) Scribe Inc. <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE.md
 * file that was distributed with this source code.
 */

namespace Scribe\MantleBundle\Doctrine\Entity\Navigation;

use Doctrine\Common\Collections\ArrayCollection;
use Scribe\Doctrine\Base\Entity\AbstractEntity;
use Scribe\Doctrine\Base\Model\HasAttributes;
use Scribe\Doctrine\Base\Model\HasChildrenInverseSide;
use Scribe\Doctrine\Base\Model\HasDescription;
use Scribe\Doctrine\Base\Model\HasName;
use Scribe\Doctrine\Behavior\Model\Sluggable\SluggableBehaviorTrait;

/**
 * Class NavigationSet.
 */
class NavigationSet extends AbstractEntity
{
    use HasName,
        HasDescription,
        HasAttributes,
        HasChildrenInverseSide,
        SluggableBehaviorTrait;

    /**
     * @var ArrayCollection
     */
    protected $navigationSet;

    /**
     * Initialize navigation set as empty array collection.
     */
    public function initializeNavigationSet()
    {
        $this->navigationSet = new ArrayCollection;
    }

    /**
     * Support casting to string.
     *
     * @return string
     */
    public function __toString()
    {
        return (string) $this->getSlug();
    }

    /**
     * Fallback for auto slug creation if one is not explicitly set<commit_msg>fix to  remove extra property on NavigationSet<commit_after><?php

/*
 * This file is part of the Scribe Mantle Bundle.
 *
 * (c) Scribe Inc. <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE.md
 * file that was distributed with this source code.
 */

namespace Scribe\MantleBundle\Doctrine\Entity\Navigation;

use Scribe\Doctrine\Base\Entity\AbstractEntity;
use Scribe\Doctrine\Base\Model\HasAttributes;
use Scribe\Doctrine\Base\Model\HasChildrenInverseSide;
use Scribe\Doctrine\Base\Model\HasDescription;
use Scribe\Doctrine\Base\Model\HasName;
use Scribe\Doctrine\Behavior\Model\Sluggable\SluggableBehaviorTrait;

/**
 * Class NavigationSet.
 */
class NavigationSet extends AbstractEntity
{
    use HasName,
        HasDescription,
        HasAttributes,
        HasChildrenInverseSide,
        SluggableBehaviorTrait;

    /**
     * Support casting to string.
     *
     * @return string
     */
    public function __toString()
    {
        return (string) $this->getSlug();
    }

    /**
     * Fallback for auto slug creation if one is not explicitly set
{'fraction_non_alphanumeric': 0.0929951690821256, 'fraction_numerical': 0.0, 'mean_word_length': 3.1624790619765495, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 10, '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': '4765014', 'n_tokens_mistral': 725, 'n_tokens_neox': 709, 'n_words': 188}