binPath = $binPath; } /** * @return array|false|mixed */ public function createAccount() { $s = exec($this->binPath . ' account create -l 1 -s 1 -f std'); $arrAccount = json_decode(trim($s), true); if (empty($arrAccount) || !is_array($arrAccount)) { return false; } return $arrAccount; } }