コード例 #1
0
ファイル: LmfLexicalEntry.php プロジェクト: VirgisM/rastija
 /**
  * Equivalent to hasSense property
  * 
  * @param \Rastija\Owl\LmfSense $sense
  */
 public function addSense(LmfSense $sense)
 {
     if ($this->_nextSenseRank < $sense->getRank()) {
         $this->_nextSenseRank = $sense->getRank() + 1;
     } else {
         $sense->setRank($this->_nextSenseRank);
         $this->_nextSenseRank++;
     }
     array_push($this->senses, $sense);
 }