options = array_merge($this->options, (array) $options); $this->base32 = $base32; } /** * @param Environment $environment * @return \Amp\Promise|\Generator|mixed */ public function run(Environment $environment) { $bob = new BOB($this->options); $bob->getnick(); $result = $bob->lookup($this->base32 . ".b32.i2p"); $bob = null; echo "Processed " . $this->base32 . ": " . ($result ? "online" : "offline") . PHP_EOL; return $result; } }