JBBCode/Parser.php
public function addCodeDefinitionSet(CodeDefinitionSet $set)
    {
        foreach ($set->getCodeDefinitions() as $def) {
            $this->addCodeDefinition($def);
        }

        return $this;
    }
public function addCodeDefinitionSet(CodeDefinitionSet $set)
    {
        foreach ($set->getCodeDefinitions() as $def) {
            $this->addCodeDefinition($def);
        }

        return $this;
    }
public function addCodeDefinitionSet ( CodeDefinitionSet $ set ) { foreach ( $ set -> getCodeDefinitions ( ) as $ def ) { $ this -> addCodeDefinition ( $ def ) ; } return $ this ; }
Adds a set of CodeDefinitions.

@param CodeDefinitionSet $set  the set of definitions to add

@return Parser
Adds a set of CodeDefinitions .