private function _createClient(array $response)
    {
        $model = new Client();
        $model->setId($response['id']);
        $model->setEmail($response['email']);
        $model->setDescription($response['description']);
        $model->setCreatedAt($response['created_at']);
        $model->setUpdatedAt($response['updated_at']);
        $model->setSubscription($this->_handleRecursive($response['subscription'], 'subscription'));
        $model->setAppId($response['app_id']);
        $model->setPayment($this->_handleRecursive($response['payment'], 'payment'));
        return $model;
    }
private function _createClient(array $response)
    {
        $model = new Client();
        $model->setId($response['id']);
        $model->setEmail($response['email']);
        $model->setDescription($response['description']);
        $model->setCreatedAt($response['created_at']);
        $model->setUpdatedAt($response['updated_at']);
        $model->setSubscription($this->_handleRecursive($response['subscription'], 'subscription'));
        $model->setAppId($response['app_id']);
        $model->setPayment($this->_handleRecursive($response['payment'], 'payment'));
        return $model;
    }
private function _createClient ( array $ response ) { $ model = new Client ( ) ; $ model -> setId ( $ response [ 'id' ] ) ; $ model -> setEmail ( $ response [ 'email' ] ) ; $ model -> setDescription ( $ response [ 'description' ] ) ; $ model -> setCreatedAt ( $ response [ 'created_at' ] ) ; $ model -> setUpdatedAt ( $ response [ 'updated_at' ] ) ; $ model -> setSubscription ( $ this -> _handleRecursive ( $ response [ 'subscription' ] , 'subscription' ) ) ; $ model -> setAppId ( $ response [ 'app_id' ] ) ; $ model -> setPayment ( $ this -> _handleRecursive ( $ response [ 'payment' ] , 'payment' ) ) ; return $ model ; }
Creates and fills a client model

@param array $response
@return Client
Creates and fills a client model