.phpstorm.meta.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. namespace PHPSTORM_META {
  3. //
  4. // Relay
  5. //
  6. registerArgumentsSet('goridge_relay_socket_type',
  7. \Spiral\Goridge\SocketRelay::SOCK_TCP,
  8. \Spiral\Goridge\SocketRelay::SOCK_UNIX,
  9. );
  10. expectedArguments(\Spiral\Goridge\SocketRelay::__construct(), 2,
  11. argumentsSet('goridge_relay_socket_type'));
  12. //
  13. // RPC
  14. //
  15. registerArgumentsSet('goridge_rpc_options_json',
  16. \JSON_BIGINT_AS_STRING,
  17. \JSON_INVALID_UTF8_IGNORE,
  18. \JSON_INVALID_UTF8_SUBSTITUTE,
  19. \JSON_OBJECT_AS_ARRAY,
  20. \JSON_THROW_ON_ERROR,
  21. );
  22. registerArgumentsSet('goridge_rpc_options_msgpack',
  23. \MessagePack\UnpackOptions::BIGINT_AS_DEC,
  24. \MessagePack\UnpackOptions::BIGINT_AS_GMP,
  25. \MessagePack\UnpackOptions::BIGINT_AS_STR,
  26. );
  27. expectedArguments(\Spiral\Goridge\RPC\RPCInterface::call(), 2,
  28. argumentsSet('goridge_rpc_options_json'));
  29. expectedArguments(\Spiral\Goridge\RPC\RPC::call(), 2,
  30. argumentsSet('goridge_rpc_options_json'));
  31. expectedArguments(\Spiral\Goridge\RPC\RPCInterface::call(), 2,
  32. argumentsSet('goridge_rpc_options_msgpack'));
  33. expectedArguments(\Spiral\Goridge\RPC\RPC::call(), 2,
  34. argumentsSet('goridge_rpc_options_msgpack'));
  35. override(\Spiral\Goridge\RPC\RPCInterface::call(), map(['' => '@']));
  36. override(\Spiral\Goridge\RPC\RPC::call(), map(['' => '@']));
  37. //
  38. // RPC Methods
  39. //
  40. registerArgumentsSet('goridge_rpc_methods_informer',
  41. 'informer.Workers',
  42. 'informer.List',
  43. );
  44. expectedArguments(\Spiral\Goridge\RPC\RPCInterface::call(), 0,
  45. argumentsSet('goridge_rpc_methods_informer'));
  46. expectedArguments(\Spiral\Goridge\RPC\RPC::call(), 0,
  47. argumentsSet('goridge_rpc_methods_informer'));
  48. }