getID() public method

public getID ( ) : string
return string Name used to identify the MappedStatement amongst the others.
Beispiel #1
0
 /**
  * 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);
 }