From 0550bef14dccecb6072121def7b61422ae5f7840 Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Sun, 12 Feb 2012 01:20:46 +0100 Subject: [PATCH] Removed methods duplicated from parent class --- .../Session/Attribute/AttributeBag.php | 2 +- .../Attribute/NamespacedAttributeBag.php | 34 ++----------------- 2 files changed, 3 insertions(+), 33 deletions(-) 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. *