diff --git a/src/Symfony/Component/HttpFoundation/Session/Attribute/AttributeBag.php b/src/Symfony/Component/HttpFoundation/Session/Attribute/AttributeBag.php index 2915b03297..d1bcb0ffb6 100644 --- a/src/Symfony/Component/HttpFoundation/Session/Attribute/AttributeBag.php +++ b/src/Symfony/Component/HttpFoundation/Session/Attribute/AttributeBag.php @@ -31,7 +31,7 @@ class AttributeBag implements AttributeBagInterface /** * Constructor. * - * @param type $storageKey The key used to store flashes in the session. + * @param string $storageKey The key used to store flashes in the session. */ public function __construct($storageKey = '_sf2_attributes') { diff --git a/src/Symfony/Component/HttpFoundation/Session/Attribute/NamespacedAttributeBag.php b/src/Symfony/Component/HttpFoundation/Session/Attribute/NamespacedAttributeBag.php index 7a32405096..138aa36145 100644 --- a/src/Symfony/Component/HttpFoundation/Session/Attribute/NamespacedAttributeBag.php +++ b/src/Symfony/Component/HttpFoundation/Session/Attribute/NamespacedAttributeBag.php @@ -29,8 +29,8 @@ class NamespacedAttributeBag extends AttributeBag /** * Constructor. * - * @param type $storageKey Session storage key. - * @param type $namespaceCharacter Namespace character to use in keys. + * @param string $storageKey Session storage key. + * @param string $namespaceCharacter Namespace character to use in keys. */ public function __construct($storageKey = '_sf2_attributes', $namespaceCharacter = '/') { @@ -70,25 +70,6 @@ class NamespacedAttributeBag extends AttributeBag $attributes[$name] = $value; } - /** - * {@inheritdoc} - */ - public function all() - { - return $this->attributes; - } - - /** - * {@inheritdoc} - */ - public function replace(array $attributes) - { - $this->attributes = array(); - foreach ($attributes as $key => $value) { - $this->set($key, $value); - } - } - /** * {@inheritdoc} */ @@ -105,17 +86,6 @@ class NamespacedAttributeBag extends AttributeBag return $retval; } - /** - * {@inheritdoc} - */ - public function clear() - { - $return = $this->attributes; - $this->attributes = array(); - - return $return; - } - /** * Resolves a path in attributes property and returns it as a reference. *