[PropertyAccess] removed an interface as discussion in the previous merge (refs #7263)
This commit is contained in:
parent
d8ac478b19
commit
e48e234c45
@ -12,11 +12,11 @@
|
|||||||
namespace Symfony\Component\PropertyAccess;
|
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>
|
* @author Jérémie Augustin <jeremie.augustin@pixel-cookers.com>
|
||||||
*/
|
*/
|
||||||
class PropertyAccessorBuilder implements PropertyAccessorBuilderInterface
|
class PropertyAccessorBuilder
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var Boolean
|
* @var Boolean
|
||||||
@ -24,7 +24,9 @@ class PropertyAccessorBuilder implements PropertyAccessorBuilderInterface
|
|||||||
private $magicCall = false;
|
private $magicCall = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* Enables the use of "__call" by the ProperyAccessor.
|
||||||
|
*
|
||||||
|
* @return PropertyAccessorBuilder The builder object
|
||||||
*/
|
*/
|
||||||
public function enableMagicCall()
|
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()
|
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()
|
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()
|
public function getPropertyAccessor()
|
||||||
{
|
{
|
||||||
|
@ -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();
|
|
||||||
}
|
|
@ -16,7 +16,7 @@ use Symfony\Component\PropertyAccess\PropertyAccessorBuilder;
|
|||||||
class PropertyAccessorBuilderTest extends \PHPUnit_Framework_TestCase
|
class PropertyAccessorBuilderTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var PropertyAccessorBuilderInterface
|
* @var PropertyAccessorBuilder
|
||||||
*/
|
*/
|
||||||
protected $builder;
|
protected $builder;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user