CodeExplorer getVhost example
if (method_exists($c, 'getReadTimeout'
)) { $timeout =
$c->
getReadTimeout();
} else { $timeout =
$c->
getTimeout();
} $a +=
[ $prefix.'is_connected' =>
$c->
isConnected(),
$prefix.'login' =>
$c->
getLogin(),
$prefix.'password' =>
$c->
getPassword(),
$prefix.'host' =>
$c->
getHost(),
$prefix.'vhost' =>
$c->
getVhost(),
$prefix.'port' =>
$c->
getPort(),
$prefix.'read_timeout' =>
$timeout,
];
return $a;
} /**
* @return array
*/
public static function castChannel(\AMQPChannel
$c, array
$a, Stub
$stub, bool
$isNested) { if (method_exists($c, 'getReadTimeout'
)) { $timeout =
$c->
getReadTimeout();
} else { $timeout =
$c->
getTimeout();
} $a +=
[ $prefix.'is_connected' =>
$c->
isConnected(),
$prefix.'login' =>
$c->
getLogin(),
$prefix.'password' =>
$c->
getPassword(),
$prefix.'host' =>
$c->
getHost(),
$prefix.'vhost' =>
$c->
getVhost(),
$prefix.'port' =>
$c->
getPort(),
$prefix.'read_timeout' =>
$timeout,
];
return $a;
} /**
* @return array
*/
public static function castChannel(\AMQPChannel
$c, array
$a, Stub
$stub, bool
$isNested) {