/** * Adds a (named) MappedStatement. * @param string The key name * @param IMappedStatement The statement to add * @throws TSqlMapDuplicateException */ public function addMappedStatement(IMappedStatement $statement) { $key = $statement->getID(); if ($this->_mappedStatements->contains($key) == true) { throw new TSqlMapDuplicateException('sqlmap_already_contains_statement', $key); } $this->_mappedStatements->add($key, $statement); }