src/core/AbstractCompositeView.php
public function getSnippet(string $snptName = '')
    {
        if (empty($snptName)) {
            return $this->snippets;
        } else {
            return isset($this->snippets[$snptName]) ? $this->snippets[$snptName]
                    : null;
        }
    }
public function getSnippet(string $snptName = '')
    {
        if (empty($snptName)) {
            return $this->snippets;
        } else {
            return isset($this->snippets[$snptName]) ? $this->snippets[$snptName]
                    : null;
        }
    }
It returns assigned snippet object by the name. If the name not presents,
then it returns the map with all View-assigned snippets.
@param string $snptName
@return \nadir2\core\Snippet|\nadir2\core\Snippet[]|null