public function setDefinitions(array $definitions)
    {
        $this->definitions = array();
        foreach ($definitions as $name => $definition) {
            $this->setDefinition($name, $definition);
        }
    }
public function setDefinitions(array $definitions)
    {
        $this->definitions = array();
        foreach ($definitions as $name => $definition) {
            $this->setDefinition($name, $definition);
        }
    }
public function setDefinitions ( array $ definitions ) { $ this -> definitions = array ( ) ; foreach ( $ definitions as $ name => $ definition ) { $ this -> setDefinition ( $ name , $ definition ) ; } }
Set the definitions.

@param array $definitions An array of definitions.

@api
Set the definitions .