src/PlatformClient.php
public function getPlanRecords(PlanRecordQuery $query = null)
    {
        $url = $this->accountsEndpoint . 'records/plan';
        $options = [];

        if ($query) {
            $options['query'] = $query->getParams();
        }

        return PlanRecord::getCollection($url, 0, $options, $this->connector->getClient());
    }
public function getPlanRecords(PlanRecordQuery $query = null)
    {
        $url = $this->accountsEndpoint . 'records/plan';
        $options = [];

        if ($query) {
            $options['query'] = $query->getParams();
        }

        return PlanRecord::getCollection($url, 0, $options, $this->connector->getClient());
    }
public function getPlanRecords ( PlanRecordQuery $ query = null ) { $ url = $ this -> accountsEndpoint . 'records/plan' ; $ options = [ ] ; if ( $ query ) { $ options [ 'query' ] = $ query -> getParams ( ) ; } return PlanRecord :: getCollection ( $ url , 0 , $ options , $ this -> connector -> getClient ( ) ) ; }
Get plan records.

@param PlanRecordQuery|null $query A query to restrict the returned plans.

@return PlanRecord[]
Get plan records .