getPoint() public méthode

get point sum
public getPoint ( string $targetId, string $option = '' ) : integer
$targetId string target id
$option string counter option
Résultat integer
 /**
  * decrement vote count
  *
  * @param Board         $board  board model
  * @param UserInterface $user   user
  * @param string        $option 'assent' or 'dissent'
  * @return void
  */
 public function decrementVoteCount(Board $board, UserInterface $user, $option)
 {
     $this->voteCounter->remove($board->id, $user, $option);
     $columnName = 'assentCount';
     if ($option == 'dissent') {
         $columnName = 'dissentCount';
     }
     $board->{$columnName} = $this->voteCounter->getPoint($board->id, $option);
     $board->save();
 }