init
This commit is contained in:
commit
72a26edcff
22092 changed files with 2101903 additions and 0 deletions
24
lib/PhpSpreadsheet/Reader/Xls/ErrorCode.php
Normal file
24
lib/PhpSpreadsheet/Reader/Xls/ErrorCode.php
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
|
||||
namespace PhpOffice\PhpSpreadsheet\Reader\Xls;
|
||||
|
||||
class ErrorCode
|
||||
{
|
||||
private const ERROR_CODE_MAP = [
|
||||
0x00 => '#NULL!',
|
||||
0x07 => '#DIV/0!',
|
||||
0x0F => '#VALUE!',
|
||||
0x17 => '#REF!',
|
||||
0x1D => '#NAME?',
|
||||
0x24 => '#NUM!',
|
||||
0x2A => '#N/A',
|
||||
];
|
||||
|
||||
/**
|
||||
* Map error code, e.g. '#N/A'.
|
||||
*/
|
||||
public static function lookup(int $code): string|bool
|
||||
{
|
||||
return self::ERROR_CODE_MAP[$code] ?? false;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue