public function find(Uid $uniqueId)
    {
        if (!array_key_exists((string) $uniqueId, $this->unitOfWorkStore)) {
            throw new UnitNotFoundException();
        }

        return $this->unitOfWorkStore[(string) $uniqueId];
    }
public function find(Uid $uniqueId)
    {
        if (!array_key_exists((string) $uniqueId, $this->unitOfWorkStore)) {
            throw new UnitNotFoundException();
        }

        return $this->unitOfWorkStore[(string) $uniqueId];
    }
public function find ( Uid $ uniqueId ) { if ( ! array_key_exists ( ( string ) $ uniqueId , $ this -> unitOfWorkStore ) ) { throw new UnitNotFoundException ( ) ; } return $ this -> unitOfWorkStore [ ( string ) $ uniqueId ] ; }
Finds the unit with the given Uid

@param Uid $uniqueId The Uid of the unit to find

@throws UnitNotFoundException

@return UnitOfWork
Finds the unit with the given Uid