X-Git-Url: https://git.mxchange.org/?p=hub.git;a=blobdiff_plain;f=application%2Fhub%2Fmain%2Fstates%2Fpeer%2Fclass_BasePeerState.php;h=cbbc183f2e0c193e72b6840eddc53718f3aa3e09;hp=b5d9bc4012fa40539badd544a7567631dac9e5f4;hb=73aff29b9bc78031853b0b8c0fe0a8e04f66ac29;hpb=81c90916f7a908c77f8844dff5adc6fae3aed422 diff --git a/application/hub/main/states/peer/class_BasePeerState.php b/application/hub/main/states/peer/class_BasePeerState.php index b5d9bc401..cbbc183f2 100644 --- a/application/hub/main/states/peer/class_BasePeerState.php +++ b/application/hub/main/states/peer/class_BasePeerState.php @@ -2,11 +2,11 @@ /** * A general peer state class * - * @author Roland Haeder + * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2011 Hub Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Hub Developer Team * @license GNU GPL 3.0 or any newer version - * @link http://www.ship-simu.org + * @link http://www.shipsimu.org * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -34,24 +34,24 @@ class BasePeerState extends BaseState { } /** - * Validates wether the state is 'connected' or throws an exception if + * Validates whether the state is 'connected' or throws an exception if * it is every other state. * * @return void - * @throws InvalidStateException If the state is not 'connected' + * @throws UnexpectedStateException If the state is not 'connected' */ public function validatePeerStateConnected () { // Just compare it... if (!$this->isPeerStateConnected()) { // Throw the exception - throw new InvalidStateException($this, self::EXCEPTION_INVALID_STATE); + throw new UnexpectedStateException($this, self::EXCEPTION_INVALID_STATE); } // END - if } /** - * Checks wether the peer's state is 'connected' + * Checks whether the peer's state is 'connected' * - * @return $isConnected Wether the state is 'connected' + * @return $isConnected Whether the state is 'connected' */ public function isPeerStateConnected () { // Just compare it...