public function fetch($options = array()) {
        $options = new Values($options);

        $params = Values::of(array(
            'Minutes' => $options['minutes'],
            'StartDate' => Serialize::iso8601DateTime($options['startDate']),
            'EndDate' => Serialize::iso8601DateTime($options['endDate']),
            'TaskChannel' => $options['taskChannel'],
        ));

        $payload = $this->version->fetch(
            'GET',
            $this->uri,
            $params
        );

        return new WorkerStatisticsInstance(
            $this->version,
            $payload,
            $this->solution['workspaceSid'],
            $this->solution['workerSid']
        );
    }
public function fetch($options = array()) {
        $options = new Values($options);

        $params = Values::of(array(
            'Minutes' => $options['minutes'],
            'StartDate' => Serialize::iso8601DateTime($options['startDate']),
            'EndDate' => Serialize::iso8601DateTime($options['endDate']),
            'TaskChannel' => $options['taskChannel'],
        ));

        $payload = $this->version->fetch(
            'GET',
            $this->uri,
            $params
        );

        return new WorkerStatisticsInstance(
            $this->version,
            $payload,
            $this->solution['workspaceSid'],
            $this->solution['workerSid']
        );
    }
public function fetch ( $ options = array ( ) ) { $ options = new Values ( $ options ) ; $ params = Values :: of ( array ( 'Minutes' => $ options [ 'minutes' ] , 'StartDate' => Serialize :: iso8601DateTime ( $ options [ 'startDate' ] ) , 'EndDate' => Serialize :: iso8601DateTime ( $ options [ 'endDate' ] ) , 'TaskChannel' => $ options [ 'taskChannel' ] , ) ) ; $ payload = $ this -> version -> fetch ( 'GET' , $ this -> uri , $ params ) ; return new WorkerStatisticsInstance ( $ this -> version , $ payload , $ this -> solution [ 'workspaceSid' ] , $ this -> solution [ 'workerSid' ] ) ; }
Fetch a WorkerStatisticsInstance

@param array|Options $options Optional Arguments
@return WorkerStatisticsInstance Fetched WorkerStatisticsInstance
@throws TwilioException When an HTTP error occurs.
Fetch a WorkerStatisticsInstance