Ejemplo n.º 1
0
 /**
  * @param WrongLetterGuessed $event
  */
 public function applyWrongLetterGuessed(WrongLetterGuessed $event)
 {
     $this->lettersWrongGuessed->addLetterToContainer($event->getLetter());
     $this->tries->removeATry();
 }
Ejemplo n.º 2
0
 /**
  * Set letterCorrectlyGuessed
  *
  * @param string $letterCorrectlyGuessed
  *
  * @return GameStatics
  */
 public function setLetterCorrectlyGuessed($letterCorrectlyGuessed)
 {
     $this->letterCorrectlyGuessed->addLetterToContainer($letterCorrectlyGuessed);
     return $this;
 }