From e48e234c452237428cb141e32a7db92048dd0f2c Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Thu, 25 Apr 2013 10:52:48 +0200 Subject: [PATCH] [PropertyAccess] removed an interface as discussion in the previous merge (refs #7263) --- .../PropertyAccessorBuilder.php | 18 +++++--- .../PropertyAccessorBuilderInterface.php | 46 ------------------- .../Tests/PropertyAccessorBuilderTest.php | 2 +- 3 files changed, 13 insertions(+), 53 deletions(-) delete mode 100644 src/Symfony/Component/PropertyAccess/PropertyAccessorBuilderInterface.php diff --git a/src/Symfony/Component/PropertyAccess/PropertyAccessorBuilder.php b/src/Symfony/Component/PropertyAccess/PropertyAccessorBuilder.php index f1302b79d4..25686e953f 100644 --- a/src/Symfony/Component/PropertyAccess/PropertyAccessorBuilder.php +++ b/src/Symfony/Component/PropertyAccess/PropertyAccessorBuilder.php @@ -12,11 +12,11 @@ namespace Symfony\Component\PropertyAccess; /** - * The default implementation of {@link PropertyAccessorBuilderInterface}. + * A configurable builder for PropertyAccessorInterface objects. * * @author Jérémie Augustin */ -class PropertyAccessorBuilder implements PropertyAccessorBuilderInterface +class PropertyAccessorBuilder { /** * @var Boolean @@ -24,7 +24,9 @@ class PropertyAccessorBuilder implements PropertyAccessorBuilderInterface private $magicCall = false; /** - * {@inheritdoc} + * Enables the use of "__call" by the ProperyAccessor. + * + * @return PropertyAccessorBuilder The builder object */ public function enableMagicCall() { @@ -34,7 +36,9 @@ class PropertyAccessorBuilder implements PropertyAccessorBuilderInterface } /** - * {@inheritdoc} + * Disables the use of "__call" by the ProperyAccessor. + * + * @return PropertyAccessorBuilder The builder object */ public function disableMagicCall() { @@ -44,7 +48,7 @@ class PropertyAccessorBuilder implements PropertyAccessorBuilderInterface } /** - * {@inheritdoc} + * @return Boolean true if the use of "__call" by the ProperyAccessor is enabled */ public function isMagicCallEnabled() { @@ -52,7 +56,9 @@ class PropertyAccessorBuilder implements PropertyAccessorBuilderInterface } /** - * {@inheritdoc} + * Builds and returns a new propertyAccessor object. + * + * @return PropertyAccessorInterface The built propertyAccessor */ public function getPropertyAccessor() { diff --git a/src/Symfony/Component/PropertyAccess/PropertyAccessorBuilderInterface.php b/src/Symfony/Component/PropertyAccess/PropertyAccessorBuilderInterface.php deleted file mode 100644 index e338cb8627..0000000000 --- a/src/Symfony/Component/PropertyAccess/PropertyAccessorBuilderInterface.php +++ /dev/null @@ -1,46 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\PropertyAccess; - -/** - * A configurable builder for PropertyAccessorInterface objects. - * - * @author Jérémie Augustin - */ -interface PropertyAccessorBuilderInterface -{ - /** - * Enable the use of "__call" by the ProperyAccessor. - * - * @return PropertyAccessorBuilderInterface The builder object. - */ - public function enableMagicCall(); - - /** - * Disable the use of "__call" by the ProperyAccessor. - * - * @return PropertyAccessorBuilderInterface The builder object. - */ - public function disableMagicCall(); - - /** - * @return Boolean true if the use of "__call" by the ProperyAccessor is enable. - */ - public function isMagicCallEnabled(); - - /** - * Builds and returns a new propertyAccessor object. - * - * @return PropertyAccessorInterface The built propertyAccessor. - */ - public function getPropertyAccessor(); -} diff --git a/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorBuilderTest.php b/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorBuilderTest.php index 6e33e5fa50..951c6802f9 100644 --- a/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorBuilderTest.php +++ b/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorBuilderTest.php @@ -16,7 +16,7 @@ use Symfony\Component\PropertyAccess\PropertyAccessorBuilder; class PropertyAccessorBuilderTest extends \PHPUnit_Framework_TestCase { /** - * @var PropertyAccessorBuilderInterface + * @var PropertyAccessorBuilder */ protected $builder;