original_string: public function add(UnitOfWork $unitOfWork)
      {
          if ($this->contains($unitOfWork)) {
              throw new UnitIsAlreadyPresentException();
          }
  
          $this->unitOfWorkStore[$unitOfWork->getUniqueId()] = $unitOfWork;
      }
code: public function add(UnitOfWork $unitOfWork)
      {
          if ($this->contains($unitOfWork)) {
              throw new UnitIsAlreadyPresentException();
          }
  
          $this->unitOfWorkStore[$unitOfWork->getUniqueId()] = $unitOfWork;
      }
code_tokens: public function add ( UnitOfWork $ unitOfWork ) { if ( $ this -> contains ( $ unitOfWork ) ) { throw new UnitIsAlreadyPresentException ( ) ; } $ this -> unitOfWorkStore [ $ unitOfWork -> getUniqueId ( ) ] = $ unitOfWork ; }
docstring: Adds a UnitOfWork to the repository
  
  @param UnitOfWork $unitOfWork The migration to add
  
  @throws UnitIsAlreadyPresentException
  
  @return void
docstring_tokens: Adds a UnitOfWork to the repository