public function status() : array
    {
        $serverPid = $this->getServerPid();
        if (empty($serverPid)) {
            throw new ControlException('Angela not currently running.');
        }
        $response = $this->sendCommand('status');
        if (empty($response)) {
            throw new ControlException('Error fetching status. (Incorrect response)');
        }
        return json_decode($response, true);
    }
public function status() : array
    {
        $serverPid = $this->getServerPid();
        if (empty($serverPid)) {
            throw new ControlException('Angela not currently running.');
        }
        $response = $this->sendCommand('status');
        if (empty($response)) {
            throw new ControlException('Error fetching status. (Incorrect response)');
        }
        return json_decode($response, true);
    }
public function status ( ) : array { $ serverPid = $ this -> getServerPid ( ) ; if ( empty ( $ serverPid ) ) { throw new ControlException ( 'Angela not currently running.' ) ; } $ response = $ this -> sendCommand ( 'status' ) ; if ( empty ( $ response ) ) { throw new ControlException ( 'Error fetching status. (Incorrect response)' ) ; } return json_decode ( $ response , true ) ; }
Checks worker status of Angela instance.

@throws ControlException
@return array
Checks worker status of Angela instance .