[PropertyAccess] removed an interface as discussion in the previous merge (refs #7263)

This commit is contained in:
Fabien Potencier 2013-04-25 10:52:48 +02:00
parent d8ac478b19
commit e48e234c45
3 changed files with 13 additions and 53 deletions

View File

@ -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 <jeremie.augustin@pixel-cookers.com>
*/
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()
{

View File

@ -1,46 +0,0 @@
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* 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 <jeremie.augustin@pixel-cookers.com>
*/
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();
}

View File

@ -16,7 +16,7 @@ use Symfony\Component\PropertyAccess\PropertyAccessorBuilder;
class PropertyAccessorBuilderTest extends \PHPUnit_Framework_TestCase
{
/**
* @var PropertyAccessorBuilderInterface
* @var PropertyAccessorBuilder
*/
protected $builder;