retrieve the last $number versions.

@param Integer $number the number of record to return.
@return PropelCollection|array \Dealer\Model\DealerShedulesVersion[] List of \Dealer\Model\DealerShedulesVersion objects
968471
public function getLastVersions($number = 10, $criteria = null, $con = null)
    {
        $criteria = ChildDealerShedulesVersionQuery::create(null, $criteria);
        $criteria->addDescendingOrderByColumn(DealerShedulesVersionTableMap::VERSION);
        $criteria->limit($number);

        return $this->getDealerShedulesVersions($criteria, $con);
    }
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);
    }
850688
public function listCommentsPullRequest(int $number): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/pulls/:number/comments',
            $this->getPullRequests()->getOwner(), $this->getPullRequests()->getRepo(), $number));
    }
1247905
public function getFirstElements(int $number): AbstractLinkedList {
        $head = $this->getHead();
        //if there are more elements requested than the list provides
        $number = $number > $head->size() ? $head->size() : $number;
        $list = $this->getEmptyInstance();
        $i = 0;
        while ($i < $number) {
            //TODO append or prepend?
            $list->append($head);
            $head = $head->getNext();
            $i++;
        }
        return $list;
    }
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);
    }
270295
public function getLastVersions($number = 10, $criteria = null, $con = null)
    {
        $criteria = ChildDealerProductVersionQuery::create(null, $criteria);
        $criteria->addDescendingOrderByColumn(DealerProductVersionTableMap::VERSION);
        $criteria->limit($number);

        return $this->getDealerProductVersions($criteria, $con);
    }
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;
	}
207912
public function getLastVersionNumber($con = null)
    {
        $v = ChildDealerVersionQuery::create()
            ->filterByDealer($this)
            ->orderByVersion('desc')
            ->findOne($con);
        if (!$v) {
            return 0;
        }

        return $v->getVersion();
    }
1154658
public function getLastVersionNumber($con = null)
    {
        $v = ChildDealerContactVersionQuery::create()
            ->filterByDealerContact($this)
            ->orderByVersion('desc')
            ->findOne($con);
        if (!$v) {
            return 0;
        }

        return $v->getVersion();
    }
417281
public function getSessionCipher($number)
    {
        if (!isset($this->sessionCiphers[$number])) {
            $this->sessionCiphers[$number] = new SessionCipher($this->axolotlStore, $this->axolotlStore, $this->axolotlStore, $this->axolotlStore, $number, 1);
        }

        return $this->sessionCiphers[$number];
    }
747331
public function convertToTriplets($number)
    {
        $triplets = [];

        while ($number > 0) {
            $triplets[] = $number % 1000;
            $number = (int) ($number / 1000);
        }

        return array_reverse($triplets);
    }
1081220
protected function getNumbers() {
        if (!$this->_numbers) {
            $this->_numbers = new NumberList($this->version);
        }

        return $this->_numbers;
    }
208236
public function getSubscriptionByNumber($number)
    {
        /** @var SubscriptionFbApi $response */
        $response = $this->call(new Request('subscription.get', array('subscription_number' => $number)), 'DVelopment\FastBill\Model\SubscriptionFbApi');
        $subscriptions = $response->getResponse()->getSubscriptions();

        return reset($subscriptions);
    }
1185043
public function lastsMutable(int $number = null): self
    {
        if ($this->isEmpty()) {
            return $this;
        }

        if ($number === null) {
            $poppedValue = $this->last();

            if ($poppedValue === null) {
                $poppedValue = [$poppedValue];
            } else {
                $poppedValue = (array) $poppedValue;
            }

            $this->array = static::create(
                $poppedValue,
                $this->iteratorClass,
                false
            )->getArray();
        } else {
            $number = (int) $number;
            $this->array = $this->rest(-$number)->getArray();
        }

        $this->generator = null;

        return $this;
    }
809378
public function lookahead($number = 1)
    {
        $fetch = $number - count($this->stash);

        while ($fetch-- > 0) {
            $this->stash[] = $this->next();
        }

        return $this->stash[--$number];
    }
1270010
protected function assertChecksum($number)
    {
        $map = array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 2, 4, 6, 8, 1, 3, 5, 7, 9);
        $sum = 0;
        $last = strlen($number) - 1;
        for ($i = 0; $i <= $last; $i++) {
            $sum += $map[$number[$last - $i] + ($i & 1) * 10];
        }

        return ($sum % 10 == 0);
    }
253913
public function numberPermutations(int $number) {
        $result = [];
        $array = NumberUtil::intToArray($number);
        $result = $this->permute($array, "", $result);
        foreach ($result as &$item) {
            \settype($item, "integer");
        }
        return $result;
    }