public function add(UnitOfWork $unitOfWork)
    {
        if ($this->contains($unitOfWork)) {
            throw new UnitIsAlreadyPresentException();
        }

        $this->unitOfWorkStore[$unitOfWork->getUniqueId()] = $unitOfWork;
    }
public function add(UnitOfWork $unitOfWork)
    {
        if ($this->contains($unitOfWork)) {
            throw new UnitIsAlreadyPresentException();
        }

        $this->unitOfWorkStore[$unitOfWork->getUniqueId()] = $unitOfWork;
    }
public function add ( UnitOfWork $ unitOfWork ) { if ( $ this -> contains ( $ unitOfWork ) ) { throw new UnitIsAlreadyPresentException ( ) ; } $ this -> unitOfWorkStore [ $ unitOfWork -> getUniqueId ( ) ] = $ unitOfWork ; }
Adds a UnitOfWork to the repository

@param UnitOfWork $unitOfWork The migration to add

@throws UnitIsAlreadyPresentException

@return void
Adds a UnitOfWork to the repository