public function mergeLog(Log $log)
	{
		/** @var Release $release */
		foreach ($log as $release)
		{
			$name = $release->getName();
			if ($this->hasRelease($name))
			{
				// if it does exist then merge the changes
				$this->mergeRelease($log, $name);
			}
			else
			{
				// If the release does not exist add it
				$this->addRelease($release);
			}
		}
	}
public function mergeLog(Log $log)
	{
		/** @var Release $release */
		foreach ($log as $release)
		{
			$name = $release->getName();
			if ($this->hasRelease($name))
			{
				// if it does exist then merge the changes
				$this->mergeRelease($log, $name);
			}
			else
			{
				// If the release does not exist add it
				$this->addRelease($release);
			}
		}
	}
public function mergeLog ( Log $ log ) { /** @var Release $release */ foreach ( $ log as $ release ) { $ name = $ release -> getName ( ) ; if ( $ this -> hasRelease ( $ name ) ) { // if it does exist then merge the changes $ this -> mergeRelease ( $ log , $ name ) ; } else { // If the release does not exist add it $ this -> addRelease ( $ release ) ; } } }
Merges another Log's releases with this log.

@param Log $log
Merges another Log s releases with this log .