Completed
Push — master ( 473a0b...a42475 )
by ignace nyamagana
03:08
created

BOM::match()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 3

Importance

Changes 0
Metric Value
dl 0
loc 10
ccs 5
cts 5
cp 1
rs 9.4285
c 0
b 0
f 0
cc 3
eloc 5
nc 3
nop 1
crap 3
1
<?php
2
/**
3
* This file is part of the League.csv library
4
*
5
* @license http://opensource.org/licenses/MIT
6
* @link https://github.com/thephpleague/csv/
7
* @version 9.0.0
8
* @package League.csv
9
*
10
* For the full copyright and license information, please view the LICENSE
11
* file that was distributed with this source code.
12
*/
13
declare(strict_types=1);
14
15
namespace League\Csv;
16
17
/**
18
 *  Defines constants for common BOM sequences
19
 *
20
 * @package League.csv
21
 * @since   9.0.0
22
 * @author  Ignace Nyamagana Butera <[email protected]>
23
 *
24
 */
25
interface BOM
26
{
27
    /**
28
     *  UTF-8 BOM sequence
29
     */
30
    const UTF8 = "\xEF\xBB\xBF";
31
32
    /**
33
     * UTF-16 BE BOM sequence
34
     */
35
    const UTF16_BE = "\xFE\xFF";
36
37
    /**
38
     * UTF-16 LE BOM sequence
39
     */
40
    const UTF16_LE = "\xFF\xFE";
41
42
    /**
43
     * UTF-32 BE BOM sequence
44
     */
45
    const UTF32_BE = "\x00\x00\xFE\xFF";
46
47
    /**
48
     * UTF-32 LE BOM sequence
49
     */
50
    const UTF32_LE = "\xFF\xFE\x00\x00";
51
}
52