-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathResourceMode.php
More file actions
63 lines (58 loc) · 1.25 KB
/
ResourceMode.php
File metadata and controls
63 lines (58 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
/**
* This file is part of the Vection package.
*
* (c) David M. Lung <vection@davidlung.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Vection\Component\Http;
/**
* Class ResourceMode
*
* @package Vection\Component\Http
*
* @author David M. Lung <vection@davidlung.de>
*/
class ResourceMode
{
public const READ = [
'r' => 'r',
'w+' => 'w+',
'r+' => 'r+',
'x+' => 'x+',
'c+' => 'c+',
'rb' => 'rb',
'w+b' => 'w+b',
'r+b' => 'r+b',
'x+b' => 'x+b',
'c+b' => 'c+b',
'rt' => 'rt',
'w+t' => 'w+t',
'r+t' => 'r+t',
'x+t' => 'x+t',
'c+t' => 'c+t',
'a+' => 'a+',
];
public const WRITE = [
'w' => 'w',
'w+' => 'w+',
'rw' => 'rw',
'r+' => 'r+',
'x+' => 'x+',
'c+' => 'c+',
'wb' => 'wb',
'w+b' => 'w+b',
'r+b' => 'r+b',
'x+b' => 'x+b',
'c+b' => 'c+b',
'w+t' => 'w+t',
'r+t' => 'r+t',
'x+t' => 'x+t',
'c+t' => 'c+t',
'a' => 'a',
'a+' => 'a+',
];
}