Adapter/PlentymarketsAdapter/Client/Client.php
public function getTotal($path, array $criteria = [])
    {
        $options = [
            'plainResponse' => true,
        ];

        $response = $this->request('GET', $path, $criteria, null, null, $options);

        if (isset($response['totalsCount'])) {
            return (int) $response['totalsCount'];
        }

        if (isset($response['entries'])) {
            $response = $response['entries'];
        }

        return count($response);
    }
public function getTotal($path, array $criteria = [])
    {
        $options = [
            'plainResponse' => true,
        ];

        $response = $this->request('GET', $path, $criteria, null, null, $options);

        if (isset($response['totalsCount'])) {
            return (int) $response['totalsCount'];
        }

        if (isset($response['entries'])) {
            $response = $response['entries'];
        }

        return count($response);
    }
public function getTotal ( $ path , array $ criteria = [ ] ) { $ options = [ 'plainResponse' => true , ] ; $ response = $ this -> request ( 'GET' , $ path , $ criteria , null , null , $ options ) ; if ( isset ( $ response [ 'totalsCount' ] ) ) { return ( int ) $ response [ 'totalsCount' ] ; } if ( isset ( $ response [ 'entries' ] ) ) { $ response = $ response [ 'entries' ] ; } return count ( $ response ) ; }
{@inheritdoc}
{