Rpc.php 769 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace AlibabaCloud\Client\Resolver;
  3. use AlibabaCloud\Client\Exception\ClientException;
  4. use AlibabaCloud\Client\Request\RpcRequest;
  5. use ReflectionException;
  6. /**
  7. * Class Rpc
  8. *
  9. * @codeCoverageIgnore
  10. * @package AlibabaCloud\Client\Resolver
  11. */
  12. abstract class Rpc extends RpcRequest
  13. {
  14. use ActionResolverTrait;
  15. use CallTrait;
  16. /**
  17. * @param array $options
  18. *
  19. * @throws ReflectionException
  20. * @throws ClientException
  21. */
  22. public function __construct(array $options = [])
  23. {
  24. parent::__construct($options);
  25. $this->resolveActionName();
  26. $this->appendSdkUA();
  27. }
  28. /**
  29. * @return mixed
  30. */
  31. private function &parameterPosition()
  32. {
  33. return $this->options['query'];
  34. }
  35. }