Get a single milestone

@link https://developer.github.com/v3/issues/milestones/#get-a-single-milestone

@param int $number

@return array
545010
public function getMilestone(int $number): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/milestones/:number',
            $this->getIssues()->getOwner(), $this->getIssues()->getRepo(), $number));
    }
36412
def milestone(self, number):
        
        json = None
        if int(number) > 0:
            url = self._build_url('milestones', str(number),
                                  base_url=self._api)
            json = self._json(self._get(url), 200)
        return Milestone(json, self) if json else None
120098
private function parseNumber($number) {

        try {
            $this->numberParsed = $this->instance->parse($number, $this->defaultRegion);
        } catch (\libphonenumber\NumberParseException $e) {
            $this->numberParsed = null;
        }
    }
1044321
private static function getNum125($number) {
		/** @var int $result */
		/** @var int $n100 */
		$n100 = $number % 100;
		/** @var int $n100 */
		$n10 = $number % 10;
		if (($n100 > 10) && ($n100 < 20)) {
			$result = self::NUMBER_FORM_5;
		}
		else if ($n10 === 1) {
			$result = self::NUMBER_FORM_1;
		}
		else if (($n10 >= 2) && ($n10 <= 4)) {
			$result = self::NUMBER_FORM_2;
		}
		else {
			$result = self::NUMBER_FORM_5;
		}
		return $result;
	}
257584
public function setNumber($number = null)
    {
        $this->number = null !== $number ? floatval($number) : null;

        return $this;
    }
885988
public function getLastVersions($number = 10, $criteria = null, $con = null)
    {
        $criteria = ChildDealerContactVersionQuery::create(null, $criteria);
        $criteria->addDescendingOrderByColumn(DealerContactVersionTableMap::VERSION);
        $criteria->limit($number);

        return $this->getDealerContactVersions($criteria, $con);
    }
986463
public function getNumberType(PhoneNumber $number)
    {
        $regionCode = $this->getRegionCodeForNumber($number);
        $metadata = $this->getMetadataForRegionOrCallingCode($number->getCountryCode(), $regionCode);
        if ($metadata === null) {
            return PhoneNumberType::UNKNOWN;
        }
        $nationalSignificantNumber = $this->getNationalSignificantNumber($number);
        return $this->getNumberTypeHelper($nationalSignificantNumber, $metadata);
    }
219433
public static function getAllPermutations($number) {
    $permutations = [];
    $permutation = static::getFirstPermutation($number);
    $permutations[] = $permutation;
    while($permutation = static::getNextPermutation($permutation)) {
      $permutations[] = $permutation;
    }
    return $permutations;
  }
1117290
public function timelineHome($number = null)
    {
        $params = array();

        // handle number parameter
        if (!is_null($number)) {
            if (!ctype_digit((string)$number) || (0 === $number) || (100 < $number)) {
                throw new \InvalidArgumentException('Invalid number parameter');
            }
            $params['number'] = $number;
        }

        return $this->query('timeline/home.json', $params);
    }
714882
public function getLastVersions($number = 10, $criteria = null, $con = null)
    {
        $criteria = ChildIndexEngineIndexVersionQuery::create(null, $criteria);
        $criteria->addDescendingOrderByColumn(IndexEngineIndexVersionTableMap::VERSION);
        $criteria->limit($number);

        return $this->getIndexEngineIndexVersions($criteria, $con);
    }
883062
public static function ceil($number)
    {
        if (self::compare($number, 0) == 1) {
            $result = bcadd($number, '1', 0);
        } else {
            $result = bcadd($number, '0', 0);
        }

        return $result;
    }
1064662
public static function SplitIntoSegments($number)
	{
		$number_str = $number->GetStringValue();
		$segments = [];
		$NumberSegments = [];

		while (strlen($number_str) > 0)
		{
			if (strlen($number_str) < 3)
			{
				$segments[] = $number_str;

				break;
			}

			$segment = substr($number_str, -3);
			$number_str = substr($number_str, 0, strlen($number_str) - 3);

			$segments[] = $segment;
		}

		return array_reverse($segments);
	}
789788
public function getByOrderNumber($number)
    {
        $connection = $this->getConnection();
        $select     = $connection->select()->from($this->getMainTable())->where('shopgate_order_number = :number');
        $bind       = [':number' => (string) $number];

        return $connection->fetchRow($select, $bind);
    }
1336757
public function getLastBadgesActivity($number = 5)
    {
        $em = $this->serviceLocator->get('playgroundreward_doctrine_em');

        $query = $em->createQuery('SELECT a FROM PlaygroundReward\Entity\Achievement a ORDER BY a.id DESC');
        $query->setMaxResults($number);
        $lastBadges = $query->getResult();

        return $lastBadges;
    }
962667
public function addIssueLabels(int $number): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/issues/:number/labels',
            $this->getIssues()->getOwner(), $this->getIssues()->getRepo(), $number), Request::METHOD_POST);
    }
841876
static function parseMobileNumber($number) {
    // Extract numerics
    $numerics = static::extractNumerics($number);
    // Set country code
    $countryCode = '';
    // Get last 10 digits
    $short = static::right($numerics, 10, $countryCode);
    // Set carrier code
    $carriercode = '';
    // Get number
    $number = static::right($short, 7, $carrierCode);
    // Return
    return compact('countryCode', 'carrierCode', 'number');
  }
521259
public function  numberToCh($number) {
        $number = intval($number);
        $array  = array('一','二','三','四','五','六','七','八','九','十');
        $str = '';
        if($number  ==0)  { $str .= "十" ;}
        if($number  <  10){
           $str .= $array[$number-1] ;
        }
        elseif($number  <  20  ){
           $str .= "十".$array[$number-11];
        }
        elseif($number  <  30  ){
           $str .= "二十".$array[$number-21];
        }
        else{
           $str .= "三十".$array[$number-31];
        }
        return $str;
    }