<commit_before><?php

/*
 * This file is part of the Integrated package.
 *
 * (c) e-Active B.V. <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Integrated\Bundle\MenuBundle\Document;

use Knp\Menu\MenuItem as KnpMenuItem;
use Knp\Menu\ItemInterface;
use Knp\Menu\FactoryInterface;

use Doctrine\Common\Collections\Collection;

use Integrated\Bundle\MenuBundle\Menu\DatabaseMenuFactory;

/**
 * @author <NAME> <<EMAIL>>
 */
class MenuItem extends KnpMenuItem
{
    /**
     * @var string
     */
    protected $id;

    /**
     * @param string $name
     * @param DatabaseMenuFactory $factory
     */
    public function __construct($name, DatabaseMenuFactory $factory)
    {
        $this->name = (string) $name;
        $this->factory = $factory;
    }

    /**
     * @return string
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * @param string $id
     * @return $this
     */
    public function setId($id)
    {
        $this->id = $id;
        return $this;
    }

    /**
     * @param FactoryInterface $factory
     * @return self
     */<commit_msg>[INTEGRATED-435] Fixed phpDoc<commit_after><?php

/*
 * This file is part of the Integrated package.
 *
 * (c) e-Active B.V. <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Integrated\Bundle\MenuBundle\Document;

use Knp\Menu\MenuItem as KnpMenuItem;
use Knp\Menu\ItemInterface;
use Knp\Menu\FactoryInterface;

use Doctrine\Common\Collections\Collection;

use Integrated\Bundle\MenuBundle\Menu\DatabaseMenuFactory;

/**
 * @author <NAME> <<EMAIL> <EMAIL>>
 */
class MenuItem extends KnpMenuItem
{
    /**
     * @var string
     */
    protected $id;

    /**
     * @param string $name
     * @param DatabaseMenuFactory $factory
     */
    public function __construct($name, DatabaseMenuFactory $factory)
    {
        $this->name = (string) $name;
        $this->factory = $factory;
    }

    /**
     * @return string
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * @param string $id
     * @return $this
     */
    public function setId($id)
    {
        $this->id = $id;
        return $this;
    }

    /**
     * @param FactoryInterface $factory
     * @return $this
     */
{'fraction_non_alphanumeric': 0.12771182971756037, 'fraction_numerical': 0.0012279983626688497, 'mean_word_length': 2.3897364771151177, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 22, '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': '4852986', 'n_tokens_mistral': 757, 'n_tokens_neox': 740, 'n_words': 197}