Returns a struct with the Name, TitleId, Version, Build and ApiVersion of the application remotely controlled.
@param bool $multicall
@return Structures\Version
543973
function getVersion($multicall = false)
    {
        if ($multicall) {
            return $this->execute(ucfirst(__FUNCTION__), array(), $this->structHandler('Version'));
        }
        return Structures\Version::fromArray($this->execute(ucfirst(__FUNCTION__)));
    }
653688
function getServerOptions($multicall = false)
    {
        if ($multicall) {
            return $this->execute(ucfirst(__FUNCTION__), array(), $this->structHandler('ServerOptions'));
        }
        return Structures\ServerOptions::fromArray($this->execute(ucfirst(__FUNCTION__)));
    }
1149882
public function getLive($liveCallUuid)
    {
        if (ArrayOperations::checkNull([$liveCallUuid])) {
            throw
            new PlivoValidationException(
                'live call uuid is mandatory');
        }

        $params = ['status' => 'live'];

        $response = $this->client->fetch(
            $this->uri . $liveCallUuid . '/',
            $params
        );

        return new CallLive(
            $this->client,
            $response->getContent(),
            $this->pathParams['authId']);
    }
747093
function getServerTags($multicall = false)
    {
        if ($multicall) {
            return $this->execute(ucfirst(__FUNCTION__), array(), $this->structHandler('Tag', true));
        }
        return Structures\Tag::fromArrayOfArray($this->execute(ucfirst(__FUNCTION__)));
    }
70051
public static function get($name, $call = true)
    {
        if (!isset(self::$services[$name])) {
            throw new \RuntimeException("The service [$name] don't register.");
        }

        $service = self::$services[$name];

        if (\is_object($service) && $service instanceof \Closure && $call) {
            if (!isset(self::$instances[$name])) {
                self::$instances[$name] = $service();
            }

            return self::$instances[$name];
        }

        return $service;
    }
8108
public function multiple($bool = true)
    {
        if ($this->props['type'] == 'date')
            $this->props['multiple'] = (bool)$bool;
        else
            $this->props['multiple'] = false;

        return $this;
    }
1187487
public function doubleCall($callerNum, $callerShowNum, $calledNum, $calledShowNum, $extend = '')
    {
        return new DoubleCall($callerNum, $callerShowNum, $calledNum, $calledShowNum, $extend);
    }
1321036
private function getContainer(Call $call)
    {
        if (!$call instanceof EnvironmentCall) {
            throw new UnsupportedCallException(sprintf(
                'ServicesResolver can not filter `%s` call.',
                get_class($call)
            ), $call);
        }

        $environment = $call->getEnvironment();

        if (!$environment instanceof ServiceContainerEnvironment) {
            throw new UnsupportedCallException(sprintf(
                'ServicesResolver can not filter `%s` call.',
                get_class($call)
            ), $call);
        }

        return $environment->getServiceContainer();
    }
54531
function createVersion() {
    if( !isset( $this->version ))
      $this->_makeVersion();
    switch( $this->format ) {
      case 'xcal':
        return ' version="'.$this->version.'"'.$this->nl;
        break;
      default:
        return 'VERSION:'.$this->version.$this->nl;
        break;
    }
  }
1302178
function getSkinsDirectory($multicall = false)
    {
        if ($multicall) {
            return $this->execute(ucfirst(__FUNCTION__), array(), array($this, 'stripBom'));
        }
        return $this->stripBom($this->execute(ucfirst(__FUNCTION__)));
    }
1087395
function setMaxPointsTeam($max, $multicall = false)
    {
        if (!is_int($max)) {
            throw new InvalidArgumentException('max = ' . print_r($max, true));
        }

        return $this->execute(ucfirst(__FUNCTION__), array($max), $multicall);
    }
1196682
public function getCallInstance()
    {
        if ($this->callInstance !== false) {
            return $this->callInstance;
        }

        if (is_array($this->call) && isset($this->call[0]) && is_object($this->call[0])) {
            $this->callInstance = $this->call[0];
            return $this->callInstance;
        }

        if (is_object($this->call) && method_exists($this->call, '__invoke')){
            $this->callInstance = $this->call;
            return $this->callInstance;
        }

        if ($this->isFunction() || $this->isStaticMethod()) {
            $this->callInstance = null;
            return $this->callInstance;
        }

        $this->callInstance = $this->resolveCallInstance($this->getCallClass());

        return $this->callInstance;
    }
285964
public function getCallable($name)
     {
         if (method_exists($this, $name)) {
             return call_user_func([$this, $name]);
         } else {
             throw new InvalidArgumentException('Undefined property: '.get_class($this)."::$name");
         }
     }
829476
function getScriptName($multicall = false)
    {
        if ($multicall) {
            return $this->execute(ucfirst(__FUNCTION__), array(), array($this, 'stripBom'));
        }
        return $this->stripBom($this->execute(ucfirst(__FUNCTION__)));
    }
1103136
protected function getVersion()
    {
        static $version;
        if (!$version) {
            $version = false;
            $string = $this->execute(['--version'], false);
            if ($string && preg_match('/(^| )([0-9]+[^ ]*)/', $string, $matches)) {
                $version = $matches[2];
            }
        }

        return $version;
    }
380780
protected function proxy() {
        if (!$this->context) {
            $this->context = new CallSummaryContext($this->version, $this->solution['callSid']);
        }

        return $this->context;
    }
1251715
public function getProtocolVersion(): Version {
		if ($this->protocolVersion !== null) {
			return $this->protocolVersion;
		}
		
		$parts = explode(self::PROTOCOL_VERSION_SEPARATOR, $this->getProtocol(), 2);
		
		if (isset($parts[1])) {
			return $this->protocolVersion = Version::create($parts[1]);
		}
		
		return $this->protocolVersion = new Version([1]);
	}