public function add($snippet, Callable $callable=null) {
		if (is_object($snippet) && $snippet instanceof Snippets) {
			$this->addSnippetClass($snippet);
		}
		if (is_string($snippet) && is_callable($callable)) {
			// '$snippet' is a tag name: register $callable
			$this->snippets[$snippet] = $callable;
		}
	}
public function add($snippet, Callable $callable=null) {
		if (is_object($snippet) && $snippet instanceof Snippets) {
			$this->addSnippetClass($snippet);
		}
		if (is_string($snippet) && is_callable($callable)) {
			// '$snippet' is a tag name: register $callable
			$this->snippets[$snippet] = $callable;
		}
	}
public function add ( $ snippet , Callable $ callable = null ) { if ( is_object ( $ snippet ) && $ snippet instanceof Snippets ) { $ this -> addSnippetClass ( $ snippet ) ; } if ( is_string ( $ snippet ) && is_callable ( $ callable ) ) { // '$snippet' is a tag name: register $callable $ this -> snippets [ $ snippet ] = $ callable ; } }
Adds one snippet or a class of Snippets.

@param string|Snippets $snippet
@param Callable $callable
Adds one snippet or a class of Snippets .