src/core/AbstractCompositeView.php
public function addSnippet(string $snptName): void
    {
        $this->snippets[$snptName] = ViewFactory::createSnippet($snptName);
    }
public function addSnippet(string $snptName): void
    {
        $this->snippets[$snptName] = ViewFactory::createSnippet($snptName);
    }
It adds snippet to the view object.
@param string $snptName
@return void