Retrieve number indications

@param string $zipcode
@param integer $number
@return NULL
769383
public function numberindication($zipcode, $number)
    {
      // Concat url
      $url = self::API_URL . '/nummeraanduidingen';

      // Create a REST request
      $request = new \LibX\Net\Rest\Request($url, \LibX\Net\Rest\Request::REQUEST_METHOD_GET);

      $parameters = [];
      $parameters['postcode'] = $zipcode;
      $parameters['huisnummer'] = $number;

      $request->setParameters($parameters);

      // Create a REST response
      $response = new \LibX\Net\Rest\Response();

      // Make the call
      $data = $this->call($request, $response);

      $indications = $data->_embedded->nummeraanduidingen;

      foreach($indications as $indication)
      {

      }
    }
1043591
public function getAuthorizationCode($code)
    {
        $code = $this->collection('code_table')->findOne(array(
            'authorization_code' => $code
        ));
        return is_null($code) ? false : $code;
    }
963741
public function execute($code = null) {

		if(null !== $code && false === ('-' . intval($code) == '-' . $code)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type integer, "%s" given', __METHOD__, gettype($code)), E_USER_ERROR);
		}

		$this -> setUrl();

		if(null !== $this -> seconds) {
			return Response :: addHeader('refresh', sprintf('%d;url=%s', $this -> seconds, $this -> url), $code);
		}

		Response :: addHeader('Location', $this -> url, $code);
	}
4878
public ArrayList<OvhCity> eligibility_cities_GET(String zipCode) throws IOException {
		String qPath = "/xdsl/eligibility/cities";
		StringBuilder sb = path(qPath);
		query(sb, "zipCode", zipCode);
		String resp = exec(qPath, "GET", sb.toString(), null);
		return convertTo(resp, t2);
	}
323176
public function getAuthorizationCode($code)
    {
        $code = $this->getObjectByType('code_table',$code);

        return is_null($code) ? false : $code;
    }
906604
public static function search($number, $code = '', $output = 'json')
    {
        if (!empty($number) && empty($code)) {
            $code = self::getCode($number, 'code');
        }
        if (!empty($number) && !empty($code)) {
            $data = array(
                'type' => trim($code),
                'postid' => trim($number)
            );
            //拼接url
            self::$url = self::$url . http_build_query($data);
            //请求接口
            $result = self::httpGet(self::$url);
            if (empty($result)) {
                $result = json_encode(array('status' => 400, 'message' => '请求错误'));
            }
        } else {
            $result = json_encode(array('status' => 400, 'message' => '快递单号不正确'));
        }
        return $output == 'json' ? $result : json_decode($result);
    }
1320990
public static function get(int $code): string {

        if ( array_key_exists($code, self::ZIP_STATUS_CODES) ) return self::ZIP_STATUS_CODES[$code];

        else return sprintf('Unknown status %s', $code);

    }
1279713
public function check($code)
    {
        $promocode = Promocode::byCode($code)->first();

        if ($promocode === null) {
            throw new InvalidPromocodeException;
        }

        if ($promocode->isExpired() || ($promocode->isDisposable() && $promocode->users()->exists())) {
            return false;
        }

        return $promocode;
    }
89640
public function status($orderCode, $toNumber)
	{
		$params = compact('orderCode', 'toNumber');
		$requestParams = $this->initRequestParams('status', $params);
		$this->request('status', $requestParams);

		return empty($this->error);
	}
1343239
public static function get($code)
    {
        try {
            return static::getByAlpha2($code);
        } catch (OutOfBoundsException $e) {
            try {
                return static::getByAlpha3($code);
            } catch (OutOfBoundsException $e) {
                try {
                    return static::getByNumeric3($code);
                } catch (OutOfBoundsException $e) {
                    throw new OutOfBoundsException("The code \"{$code}\" is not listed in ISO 4217");
                }
            }
        }
    }
260847
public function checkCoupon($code, $articleNumber)
    {
        $requestData = new Check\RequestData($code, $articleNumber);
        $request = new Check\Request($requestData);

        return $this->sendRequest($request, Check\ApiResponse::class);
    }
1246002
protected function apcu_fetch($key, &$success = null)
    {
        /*
         * $key can also be numeric, in which case APC is able to retrieve it,
         * but will have an invalid $key in the results array, and trying to
         * locate it by its $key in that array will fail with `undefined index`.
         * I'll work around this by requesting those values 1 by 1.
         */
        if (is_array($key)) {
            $nums = array_filter($key, 'is_numeric');
            if ($nums) {
                $values = array();
                foreach ($nums as $k) {
                    $values[$k] = $this->apcu_fetch((string) $k, $success);
                }

                $remaining = array_diff($key, $nums);
                if ($remaining) {
                    $values += $this->apcu_fetch($remaining, $success2);
                    $success &= $success2;
                }

                return $values;
            }
        }

        if (function_exists('apcu_fetch')) {
            return apcu_fetch($key, $success);
        } else {
            return apc_fetch($key, $success);
        }
    }
987903
public static function validate($zipcode, $country = null)
    {
        $zipcode = trim($zipcode);
        $country = trim($country);
        if (empty($zipcode) || empty($country)) {
            return false;
        }

        $country = strtoupper($country);
        if (!isset(self::$patterns[$country])) {
            throw new \InvalidArgumentException("ERROR: The zipcode validator for $country does not exists yet: feel free to add it.");
        }

        return (bool) preg_match('/^('.self::$patterns[$country].')$/', $zipcode);
    }
354196
public function setZipCode($zipCode): Hybrid
    {
        self::validateSetLength('zipCode', $zipCode);
        $this->data['zipCode'] = $zipCode;

        return $this;
    }
664236
public function findByCode($code)
    {
        foreach ($this->sections as $section) {
            if ($section->getCharCodeFrom() <= $code && $section->getCharCodeTo() >= $code) {
                return $section;
            }
        }

        return null;
    }
982082
public function get_slot_by_number($slotnumber) {
        foreach ($this->slots as $slot) {
            if ($slot->slot == $slotnumber) {
                return $slot;
            }
        }

        throw new \coding_exception('The \'slotnumber\' could not be found.');
    }
1374830
public function getCardinality($numeric = false){
        $returnValue = null;

        // get maximum possibility:
        switch(strtolower($this->getType())){
            case 'choice':
            case 'hottext':
            case 'hotspot':
            case 'selectpoint':
            case 'positionobject':{
                    $max = intval($this->getAttributeValue('maxChoices'));
                    if($numeric){
                        $returnValue = $max;
                    }
                    else {
                        $returnValue = ($max == 1) ? 'single' : 'multiple'; // default=1
                    }
                    break;
                }
            case 'associate':
            case 'match':
            case 'graphicassociate':{
                    $max = intval($this->getAttributeValue('maxAssociations'));
                    if($numeric){
                        $returnValue = $max;
                    }
                    else{
                        $returnValue = ($max == 1) ? 'single' : 'multiple';
                    } // default=1
                    break;
                }
            case 'extendedtext':{
                    // maxStrings + order or not?
                    $cardinality = $this->getAttributeValue('cardinality');
                    if($cardinality == 'ordered'){
                        if($numeric){
                            $returnValue = 0;
                        } // meaning, infinite
                        else {
                            $returnValue = $cardinality;
                        }
                        break;
                    }
                    $max = intval($this->getAttributeValue('maxStrings'));
                    if($numeric){
                        $returnValue = $max;
                    }
                    else {
                        $returnValue = ($max > 1) ? 'multiple' : 'single'; // optional
                    }
                    break;
                }
            case 'gapmatch':{
                    // count the number of gap, i.e. "groups" in the interaction:
                    $max = count($this->getGaps());
                    if($numeric) {
                        $returnValue = $max;
                    }
                    else {
                        $returnValue = ($max > 1) ? 'multiple' : 'single';
                    }
                    break;
                }
            case 'graphicgapmatch':{
                    // strange that the standard always specifies "multiple":
                    $returnValue = 'multiple';
                    break;
                }
            case 'order':
            case 'graphicorder':{
                    $returnValue = ($numeric) ? 1 : 'ordered';
                    break;
                }
            case 'inlinechoice':
            case 'textentry':
            case 'media':
            case 'slider':
            case 'upload':
            case 'endattempt':{
                    $returnValue = ($numeric) ? 1 : 'single';
                    break;
                }
            default:{
                    throw new QtiModelException("the current interaction type \"{$this->type}\" is not available yet");
                }
        }

        return $returnValue;
    }