Finalizes the Collection, populating it with Parameters that have not been explicitly set, but
have defined default values.

@return  $this
509659
public function finalize() : Values
    {
        /* @var input\Parameter $parameter */
        foreach ($this->definitions as $name => $parameter) {
            if (isset($this->items[$name])) {
                continue;
            }

            // In the case of Parameters which do not accept values (ie. optional flags), we explicitly default them
            // to a boolean false, opposed to a boolean true when they are actually set in input.
            $this->items[$name] = ($value = $parameter->getValue()) ? $value->getDefault() : false;
        }

        return $this;
    }
138643
public function reset()
    {
        return $this->collector->set($this->method, $this->pattern, $this->action)->nth(0)
                               ->setStrategy($this->strategy)->setParams($this->params)
                               ->setDefaults($this->defaults)->setMetadataArray($this->metadata);
    }
424611
public function finalize()
    {
        $this->addItem(new MainMenu());

        if (get_class(\Ease\Shared::user()) == 'SpojeNet\System\User') {
            $this->addItem(new History());
        }
    }
939711
protected function queryValues()
    {
        foreach($this->defaultQueryParameters as $parameter => $validator){
            $value = request($parameter);
            if($value) {
                $this->{$parameter} = $value;
            }
        }

        return $this;
    }
1049663
public function finalize()
    {
        if (!$this->finalized) {
            foreach ($this->getRoutes() as $route) {
                $route->finalize();
                $this->addRoute($route->getMethods(), $route->getPattern(), [$route, 'run']);
            }
            $this->finalized = true;
        }
    }
38215
public function loadDefault() {
		foreach($this->getDefinition()->properties() as $name=>$property)
			$this->_set($name, $property->getDefault($this, $name), null, false);
		return $this;
	}
873067
private function prepareAutocompleteAttributeCollection()
    {
        $storeId = $this->storeManager->getStore()->getId();

        $this->autocompleteAttributeCollection->addStoreLabel($storeId)
            ->addFieldToFilter('is_displayed_in_autocomplete', true)
            ->load();

        return $this;
    }
1065065
public function finalize()
    {
        foreach ($this->getGroups() as $group) {
            foreach ($group->getMiddleware() as $middleware) {
                array_unshift($this->middleware, $middleware);
            }
        }
        foreach ($this->getMiddleware() as $middleware) {
            $this->addMiddleware($middleware);
        }
    }
1154960
public function clear()
    {
        $this->wheres  = array();
        $this->sets    = array();
        $this->havings = array();
        $this->orders  = array();
        $this->binds   = array();
        $this->limit   = null;
        $this->offset  = null;

        return $this;
    }
487179
protected function cleanCollection() : self {
      foreach ($this as $index => $token) {
        if ($token->isValid()) {
          continue;
        }
        unset($this->items[$index]);
      }

      return $this;
    }
649070
public function clear()
    {
        $this->models = [];
        $this->modelKeyMap = [];
        $this->added = [];
        $this->removed = $this->original;
        return $this;
    }
980211
public function reset()
    {
        $this->filteredData = null;
        $this->filters = [];
        $this->sort = null;

        return $this;
    }
632958
public function reset() {
		$this->tables  = [];
		$this->columns = [];
		$this->where   = [];
		$this->offset  = null;
		$this->limit   = null;
		$this->orderBy = [];
		$this->groupBy = [];
		$this->joins   = [];
		$this->params  = [];

		return $this;
	}
60508
protected function populateParameters()
    {
        $this->parameters->clear();
        if ($this->hasParameters() && $this->node) {
            foreach ($this->node->value as $key => $node) {
                $attributes = $node->attributes();
                switch ((string) $attributes['type']) {
                    case 'list':
                        $value = array();
                        foreach ($node->children() as $c) {
                            $value[] = (string) $c;
                        }
                        break;

                    case 'int':
                        if (strlen($value = (string) $node[0])) {
                            $value = (int) $value;
                        } else {
                            $value = null;
                        }
                        break;

                    default:
                        $value = (string) $node[0];
                        break;
                }
                $this->parameters->set((string) $attributes['key'], $value);
            }
        }
    }
1166766
protected function setDefault()
    {
        if (strpos($this->input, '=')) {
            list($this->input, $this->default) = explode('=', $this->input);

            $this->modeArray[] = 'OPTIONAL';
        }

        return $this;
    }
938011
public function reset()
    {
        $this->class    = null;
        $this->with     = [];
        $this->flags    = [];
        $this->columns  = [];
        $this->from     = [];
        $this->join     = [];
        $this->where    = [];
        $this->groupBy  = [];
        $this->having   = [];
        $this->orderBy  = [];
        $this->limit    = null;
        $this->offset   = null;
        $this->bindings = [
            'select' => [],
            'from'   => [],
            'join'   => [],
            'where'  => [],
            'group'  => [],
            'having' => [],
            'order'  => [],
        ];

        return $this;
    }
1211959
public function reset()
    {
        $this->builder->resetQueryParts();
        $this->relations = [];
        $this->resetBinds();

        $this->setQuery();
        $this->values();
        $this->setPrimaryKeyConditions();

        return $this;
    }