is version methods
This commit is contained in:
parent
2d99728f76
commit
dee349220c
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user