public function getAll()
    {
        $response = $this->client->sendRequest($this->getBase());
        try {
            $dataSet = new DataSetStruct($response);
        } catch (\InvalidArgumentException $e) {
            throw new UnexpectedValueException($e->getMessage(), $e->getCode(), $e);
        }

        $result = [];
        $items = $dataSet->exportItems();
        foreach ($items as $item) {
            try {
                $result[] = new Account($item);
            } catch (\InvalidArgumentException $e) {
                throw new UnexpectedValueException($e->getMessage(), $e->getCode(), $e);
            }
        }

        return $result;
    }
public function getAll()
    {
        $response = $this->client->sendRequest($this->getBase());
        try {
            $dataSet = new DataSetStruct($response);
        } catch (\InvalidArgumentException $e) {
            throw new UnexpectedValueException($e->getMessage(), $e->getCode(), $e);
        }

        $result = [];
        $items = $dataSet->exportItems();
        foreach ($items as $item) {
            try {
                $result[] = new Account($item);
            } catch (\InvalidArgumentException $e) {
                throw new UnexpectedValueException($e->getMessage(), $e->getCode(), $e);
            }
        }

        return $result;
    }
public function getAll ( ) { $ response = $ this -> client -> sendRequest ( $ this -> getBase ( ) ) ; try { $ dataSet = new DataSetStruct ( $ response ) ; } catch ( \ InvalidArgumentException $ e ) { throw new UnexpectedValueException ( $ e -> getMessage ( ) , $ e -> getCode ( ) , $ e ) ; } $ result = [ ] ; $ items = $ dataSet -> exportItems ( ) ; foreach ( $ items as $ item ) { try { $ result [ ] = new Account ( $ item ) ; } catch ( \ InvalidArgumentException $ e ) { throw new UnexpectedValueException ( $ e -> getMessage ( ) , $ e -> getCode ( ) , $ e ) ; } } return $ result ; }
Get all accounts.

@return Account[]

@throws \Comindware\Tracker\API\Exception\RuntimeException In case of non-API errors.
@throws \Comindware\Tracker\API\Exception\UnexpectedValueException On invalid response.
@throws \Comindware\Tracker\API\Exception\WebApiClientException Ore one of descendants.
@throws \LogicException On internal errors.

@since 0.1
Get all accounts .