diff --git a/src/AtolOnlineClient/Configuration/Connection.php b/src/AtolOnlineClient/Configuration/Connection.php index d283dea..a7edb1f 100644 --- a/src/AtolOnlineClient/Configuration/Connection.php +++ b/src/AtolOnlineClient/Configuration/Connection.php @@ -2,6 +2,7 @@ namespace AtolOnlineClient\Configuration; +use AtolOnlineClient\AtolOnlineApi; use Symfony\Component\Validator\Constraints as Assert; use Symfony\Component\Validator\Mapping\ClassMetadata; @@ -152,4 +153,20 @@ class Connection { return $this->version; } + + /** + * @return bool + */ + public function isVersion3() + { + return $this->getVersion() === AtolOnlineApi::API_VERSION_V3; + } + + /** + * @return bool + */ + public function isVersion4() + { + return $this->getVersion() === AtolOnlineApi::API_VERSION_V4; + } }