Smalot\Magento\RemoteAdapter::call PHP Method

call() public method

public call ( Smalot\Magento\ActionInterface $action, boolean $throwsException = true ) : array | false
$action Smalot\Magento\ActionInterface
$throwsException boolean
return array | false
    public function call(ActionInterface $action, $throwsException = true)
    {
        try {
            $this->checkSecurity();
            $result = $this->soapClient->call($this->sessionId, $action->getMethod(), $action->getArguments());
            return $result;
        } catch (\Exception $e) {
            if ($throwsException) {
                throw $e;
            }
            return false;
        }
    }