src/Controllers/ContractController.php
public function getContracts(int $accountID, int $page = 1)
    {
        $result = $this->httpHelper->get("/accounts/" . intval($accountID) . "/contracts", $page);
        $contracts = [];

        foreach ($result as $datum)
        {
            $contract = new Contract((array)$datum);
            array_push($contracts,$contract);
        }

        return $contracts;
    }
public function getContracts(int $accountID, int $page = 1)
    {
        $result = $this->httpHelper->get("/accounts/" . intval($accountID) . "/contracts", $page);
        $contracts = [];

        foreach ($result as $datum)
        {
            $contract = new Contract((array)$datum);
            array_push($contracts,$contract);
        }

        return $contracts;
    }
public function getContracts ( int $ accountID , int $ page = 1 ) { $ result = $ this -> httpHelper -> get ( "/accounts/" . intval ( $ accountID ) . "/contracts" , $ page ) ; $ contracts = [ ] ; foreach ( $ result as $ datum ) { $ contract = new Contract ( ( array ) $ datum ) ; array_push ( $ contracts , $ contract ) ; } return $ contracts ; }
This returns an array of 'Contract' objects
@param int $accountID
@param int $page
@return array
This returns an array of Contract objects