1
0
mirror of synced 2024-11-24 22:16:08 +03:00

is version methods

This commit is contained in:
Alexey Chelnakov 2018-06-25 18:23:39 +03:00
parent 2d99728f76
commit dee349220c

View File

@ -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;
}
}