PluginProbe
WPIDE – File Manager & Code Editor / 3.5.10
WPIDE – File Manager & Code Editor v3.5.10
3.5.10 3.5.9 3.5.8 3.5.7 2.0.14 2.0.15 2.0.16 2.0.2 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1 2.2 2.3 2.3.1 2.3.2 2.4.0 2.5 2.6 3.0 3.1 3.2 All 56 releases
wpide / vendor / symfony / http-foundation / Session / Attribute / AttributeBagInterface.php

AttributeBagInterface.php in WPIDE – File Manager & Code Editor 3.5.10, at vendor/symfony/http-foundation/Session/Attribute/AttributeBagInterface.php

62 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <[email protected]>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12 namespace Symfony\Component\HttpFoundation\Session\Attribute;
13
14 use Symfony\Component\HttpFoundation\Session\SessionBagInterface;
15
16 /**
17 * Attributes store.
18 *
19 * @author Drak <[email protected]>
20 */
21 interface AttributeBagInterface extends SessionBagInterface
22 {
23 /**
24 * Checks if an attribute is defined.
25 *
26 * @return bool
27 */
28 public function has(string $name);
29
30 /**
31 * Returns an attribute.
32 *
33 * @param mixed $default The default value if not found
34 *
35 * @return mixed
36 */
37 public function get(string $name, $default = null);
38
39 /**
40 * Sets an attribute.
41 *
42 * @param mixed $value
43 */
44 public function set(string $name, $value);
45
46 /**
47 * Returns attributes.
48 *
49 * @return array<string, mixed>
50 */
51 public function all();
52
53 public function replace(array $attributes);
54
55 /**
56 * Removes an attribute.
57 *
58 * @return mixed The removed value or null when it does not exist
59 */
60 public function remove(string $name);
61 }
62