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

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

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

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

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

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

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

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

        //XXX include Error checks
        $object = json_decode($response, true);
        return $this->createTransactionCollection($object['data']); //XXX brr => error/content validation first
    }
public function incomingTransactions ( $ address , $ hash = null , $ id = null ) { $ params = [ "address" => $ address ] ; if ( $ hash !== null ) $ params [ "hash" ] = $ hash ; if ( $ id !== null ) $ params [ "id" ] = $ id ; $ apiUrl = $ this -> getPath ( 'transfers/incoming' , $ params ) ; $ response = $ this -> api -> getJSON ( $ apiUrl ) ; //XXX include Error checks $ object = json_decode ( $ response , true ) ; return $ this -> createTransactionCollection ( $ object [ 'data' ] ) ; //XXX brr => error/content validation first }
A transaction is said to be incoming with respect to an account if the account is the recipient of the
transaction. In the same way outgoing transaction are the transactions where the account is the sender of the
transaction. Unconfirmed transactions are those transactions that have not yet been included in a block.
Unconfirmed transactions are not guaranteed to be included in any block.

@param   string  $address    Base32 representation of the account address (T-, N-, M- prefixed addresses).
@param   string  $hash       (Optional) The 256 bit sha3 hash of the transaction up to which transactions are returned.
@param   integer $id         (Optional) The transaction id up to which transactions are returned. This parameter will prevail over the hash parameter.
@return array                Array of object with keys from [TransactionMetaDataPair](https://bob.nem.ninja/docs/#transactionMetaDataPair) objects.
A transaction is said to be incoming with respect to an account if the account is the recipient of the transaction . In the same way outgoing transaction are the transactions where the account is the sender of the transaction . Unconfirmed transactions are those transactions that have not yet been included in a block . Unconfirmed transactions are not guaranteed to be included in any block .