public function onPrepareReleaseConstructReleaseInstance(PrepareReleaseEvent $event)
    {
        if (($event->getRelease() instanceof Release) === false) {
            $release = new Release($event->getVersion());

            $event->getWorkspace()->addRelease($release);
            $event->setRelease($release);
        }
    }
public function onPrepareReleaseConstructReleaseInstance(PrepareReleaseEvent $event)
    {
        if (($event->getRelease() instanceof Release) === false) {
            $release = new Release($event->getVersion());

            $event->getWorkspace()->addRelease($release);
            $event->setRelease($release);
        }
    }
public function onPrepareReleaseConstructReleaseInstance ( PrepareReleaseEvent $ event ) { if ( ( $ event -> getRelease ( ) instanceof Release ) === false ) { $ release = new Release ( $ event -> getVersion ( ) ) ; $ event -> getWorkspace ( ) -> addRelease ( $ release ) ; $ event -> setRelease ( $ release ) ; } }
Creates a Release instance when not already available.

@param PrepareReleaseEvent $event
Creates a Release instance when not already available .