Box\Spout\Reader\XLSX\Helper\StyleHelper::getFormatCodeForNumFmtId PHP Method

getFormatCodeForNumFmtId() protected method

protected getFormatCodeForNumFmtId ( integer $numFmtId ) : string | null
$numFmtId integer
return 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;
    }