private function validate_client($client)
    {
        if (!isset($client->{"name"}))
            throw new \Exception("'client' has no 'name'!");
        if (!isset($client->{"queues"}))
            throw new \Exception("'client' has no 'queues'!");
        if (!isset($client->{"queues"}->{'input'}))
            throw new \Exception("'client' has no 'input' queue!");
        if (!isset($client->{"queues"}->{'output'}))
            throw new \Exception("'client' has no 'output' queue !");
    }
private function validate_client($client)
    {
        if (!isset($client->{"name"}))
            throw new \Exception("'client' has no 'name'!");
        if (!isset($client->{"queues"}))
            throw new \Exception("'client' has no 'queues'!");
        if (!isset($client->{"queues"}->{'input'}))
            throw new \Exception("'client' has no 'input' queue!");
        if (!isset($client->{"queues"}->{'output'}))
            throw new \Exception("'client' has no 'output' queue !");
    }
private function validate_client ( $ client ) { if ( ! isset ( $ client -> { "name" } ) ) throw new \ Exception ( "'client' has no 'name'!" ) ; if ( ! isset ( $ client -> { "queues" } ) ) throw new \ Exception ( "'client' has no 'queues'!" ) ; if ( ! isset ( $ client -> { "queues" } -> { 'input' } ) ) throw new \ Exception ( "'client' has no 'input' queue!" ) ; if ( ! isset ( $ client -> { "queues" } -> { 'output' } ) ) throw new \ Exception ( "'client' has no 'output' queue !" ) ; }
Validate Client object structure

@param string|object $client JSON string or PHP Object created using json_decode. This contains your client SQS configuration which list your application `input` and `output` queues.
Validate Client object structure