Box\Spout\Reader\XLSX\Helper\StyleHelper::getFormatCodeForNumFmtId PHP Метод

getFormatCodeForNumFmtId() защищенный Метод

protected getFormatCodeForNumFmtId ( integer $numFmtId ) : string | null
$numFmtId integer
Результат string | null The custom number format or NULL if none defined for the given numFmtId
    protected function getFormatCodeForNumFmtId($numFmtId)
    {
        $customNumberFormats = $this->getCustomNumberFormats();
        // Using isset here because it is way faster than array_key_exists...
        return isset($customNumberFormats[$numFmtId]) ? $customNumberFormats[$numFmtId] : null;
    }