public function getRegistrationById($registrationId)
    {
        /** @var Registration $registration */
        foreach ($this->registrations as $registration) {
            if ($registration->getId() === $registrationId) {
                return $registration;
            }
        }

        return false;
    }
public function getRegistrationById($registrationId)
    {
        /** @var Registration $registration */
        foreach ($this->registrations as $registration) {
            if ($registration->getId() === $registrationId) {
                return $registration;
            }
        }

        return false;
    }
public function getRegistrationById ( $ registrationId ) { /** @var Registration $registration */ foreach ( $ this -> registrations as $ registration ) { if ( $ registration -> getId ( ) === $ registrationId ) { return $ registration ; } } return false ; }
Get registration by ID

@param $registrationId
@return bool|Registration
Get registration by ID