public function getHarvestInfo($address, $hash = null) 
    {
        $params = ["address" => $address];

        if ($hash !== null)
            $params["hash"] = $hash;

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

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

        if ($hash !== null)
            $params["hash"] = $hash;

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

        //XXX include Error checks
        $data = json_decode($response, true);
        return $this->createBaseModel($object); //XXX brr => error/content validation first
    }
public function getHarvestInfo ( $ address , $ hash = null ) { $ params = [ "address" => $ address ] ; if ( $ hash !== null ) $ params [ "hash" ] = $ hash ; $ apiUrl = $ this -> getPath ( 'harvests' , $ params ) ; $ response = $ this -> api -> getJSON ( $ apiUrl ) ; //XXX include Error checks $ data = json_decode ( $ response , true ) ; return $ this -> createBaseModel ( $ object ) ; //XXX brr => error/content validation first }
Gets an array of harvest info objects for an account.

@param   string  $address    The address of the account.
@param   string  %hash       The 256 bit sha3 hash of the block up to which harvested blocks are returned.
@return  object              Instance with keys from [HarvestInfo](https://bob.nem.ninja/docs/#harvestInfo) objects.
Gets an array of harvest info objects for an account .