Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame^] | 1 | <?php |
2 | |||||
3 | namespace LdapRecord; | ||||
4 | |||||
5 | use LdapRecord\Models\Attributes\EscapedValue; | ||||
6 | |||||
7 | trait EscapesValues | ||||
8 | { | ||||
9 | /** | ||||
10 | * Prepare a value to be escaped. | ||||
11 | * | ||||
12 | * @param string $value | ||||
13 | * @param string $ignore | ||||
14 | * @param int $flags | ||||
15 | * | ||||
16 | * @return EscapedValue | ||||
17 | */ | ||||
18 | public function escape($value, $ignore = '', $flags = 0) | ||||
19 | { | ||||
20 | return new EscapedValue($value, $ignore, $flags); | ||||
21 | } | ||||
22 | } |