Removed methods duplicated from parent class

This commit is contained in:
Christophe Coevoet 2012-02-12 01:20:46 +01:00
parent 7e4f4dcdf9
commit 0550bef14d
2 changed files with 3 additions and 33 deletions

View File

@ -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')
{

View File

@ -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.
*