<commit_before><?php
namespace Concrete\Core\Navigation\Item;

class Item implements ItemInterface, \JsonSerializable
{

    /**
     * @var string
     */
    protected $url;

    /**
     * @var string
     */
    protected $name;

    /**
     * @var bool
     */
    protected $isActive;

    /**
     * @var bool
     */
    protected $isActiveParent = false;

    /**
     * @var Item[]
     */
    protected $children = [];

    /**
     * Item constructor.
     * @param string $url
     * @param string $name
     * @param bool $isActive
     */
    public function __construct(string $url, string $name, bool $isActive = false, $isActiveParent = false)
    {
        $this->url = $url;
        $this->name = $name;
        $this->isActive = $isActive;
        $this->isActiveParent = $isActiveParent;
    }

    /**
     * @return string
     */
    public function getUrl(): string<commit_msg>adding the ability to set children in nav constructor<commit_after><?php
namespace Concrete\Core\Navigation\Item;

class Item implements ItemInterface, \JsonSerializable
{

    /**
     * @var string
     */
    protected $url;

    /**
     * @var string
     */
    protected $name;

    /**
     * @var bool
     */
    protected $isActive;

    /**
     * @var bool
     */
    protected $isActiveParent = false;

    /**
     * @var Item[]
     */
    protected $children = [];

    /**
     * Item constructor.
     * @param string $url
     * @param string $name
     * @param bool $isActive
     */
    public function __construct(string $url, string $name, bool $isActive = false, $isActiveParent = false, $children = [])
    {
        $this->url = $url;
        $this->name = $name;
        $this->isActive = $isActive;
        $this->isActiveParent = $isActiveParent;
        $this->children = $children;
    }

    /**
     * @return string
     */
    public function getUrl(): string
{'fraction_non_alphanumeric': 0.13834823776959496, 'fraction_numerical': 0.0, 'mean_word_length': 1.9351851851851851, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 12, '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': '7643365', 'n_tokens_mistral': 576, 'n_tokens_neox': 563, 'n_words': 140}