File tree Expand file tree Collapse file tree 3 files changed +13
-53
lines changed
src/Symfony/Component/PropertyAccess Expand file tree Collapse file tree 3 files changed +13
-53
lines changed Original file line number Diff line number Diff line change 12
12
namespace Symfony \Component \PropertyAccess ;
13
13
14
14
/**
15
- * The default implementation of {@link PropertyAccessorBuilderInterface} .
15
+ * A configurable builder for PropertyAccessorInterface objects .
16
16
*
17
17
* @author Jérémie Augustin <jeremie.augustin@pixel-cookers.com>
18
18
*/
19
- class PropertyAccessorBuilder implements PropertyAccessorBuilderInterface
19
+ class PropertyAccessorBuilder
20
20
{
21
21
/**
22
22
* @var Boolean
23
23
*/
24
24
private $ magicCall = false ;
25
25
26
26
/**
27
- * {@inheritdoc}
27
+ * Enables the use of "__call" by the ProperyAccessor.
28
+ *
29
+ * @return PropertyAccessorBuilder The builder object
28
30
*/
29
31
public function enableMagicCall ()
30
32
{
@@ -34,7 +36,9 @@ public function enableMagicCall()
34
36
}
35
37
36
38
/**
37
- * {@inheritdoc}
39
+ * Disables the use of "__call" by the ProperyAccessor.
40
+ *
41
+ * @return PropertyAccessorBuilder The builder object
38
42
*/
39
43
public function disableMagicCall ()
40
44
{
@@ -44,15 +48,17 @@ public function disableMagicCall()
44
48
}
45
49
46
50
/**
47
- * {@inheritdoc}
51
+ * @return Boolean true if the use of "__call" by the ProperyAccessor is enabled
48
52
*/
49
53
public function isMagicCallEnabled ()
50
54
{
51
55
return $ this ->magicCall ;
52
56
}
53
57
54
58
/**
55
- * {@inheritdoc}
59
+ * Builds and returns a new propertyAccessor object.
60
+ *
61
+ * @return PropertyAccessorInterface The built propertyAccessor
56
62
*/
57
63
public function getPropertyAccessor ()
58
64
{
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 16
16
class PropertyAccessorBuilderTest extends \PHPUnit_Framework_TestCase
17
17
{
18
18
/**
19
- * @var PropertyAccessorBuilderInterface
19
+ * @var PropertyAccessorBuilder
20
20
*/
21
21
protected $ builder ;
22
22
You can’t perform that action at this time.
0 commit comments