public function getOwnedMosaics($address) 
    {
        $params = ["address" => $address];

        $apiUrl = $this->getPath('mosaic/owned', $params);
        $response = $this->api->getJSON($apiUrl);

        //XXX include Error checks
        $object = json_decode($response, true);
        return $this->createMosaicCollection($object['data']); //XXX brr => error/content validation first
    }
public function getOwnedMosaics($address) 
    {
        $params = ["address" => $address];

        $apiUrl = $this->getPath('mosaic/owned', $params);
        $response = $this->api->getJSON($apiUrl);

        //XXX include Error checks
        $object = json_decode($response, true);
        return $this->createMosaicCollection($object['data']); //XXX brr => error/content validation first
    }
public function getOwnedMosaics ( $ address ) { $ params = [ "address" => $ address ] ; $ apiUrl = $ this -> getPath ( 'mosaic/owned' , $ params ) ; $ response = $ this -> api -> getJSON ( $ apiUrl ) ; //XXX include Error checks $ object = json_decode ( $ response , true ) ; return $ this -> createMosaicCollection ( $ object [ 'data' ] ) ; //XXX brr => error/content validation first }
Gets an array of mosaic objects for a given account address.

@param   string          $address    The address of the account.
@return  array                       Array of object with keys from [MosaicDefinitionMetaDataPair](https://bob.nem.ninja/docs/#mosaicDefinitionMetaDataPair) objects.
Gets an array of mosaic objects for a given account address .