diff options
author | Nicolas Lœuillet <nicolas.loeuillet@gmail.com> | 2013-08-04 17:50:34 +0200 |
---|---|---|
committer | Nicolas Lœuillet <nicolas.loeuillet@gmail.com> | 2013-08-04 17:50:34 +0200 |
commit | 46b77928f746a4231d064774b5b67fd892c7ce86 (patch) | |
tree | e3ea690b3f0def1744ddae758923cf92171ef985 /vendor/symfony/property-access/Symfony/Component/PropertyAccess/PropertyAccessorBuilder.php | |
parent | 68abd9c71b1d2f7bb2e9d21819584d1d15005b25 (diff) | |
download | wallabag-46b77928f746a4231d064774b5b67fd892c7ce86.tar.gz wallabag-46b77928f746a4231d064774b5b67fd892c7ce86.tar.zst wallabag-46b77928f746a4231d064774b5b67fd892c7ce86.zip |
rm vendor
Diffstat (limited to 'vendor/symfony/property-access/Symfony/Component/PropertyAccess/PropertyAccessorBuilder.php')
-rw-r--r-- | vendor/symfony/property-access/Symfony/Component/PropertyAccess/PropertyAccessorBuilder.php | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/vendor/symfony/property-access/Symfony/Component/PropertyAccess/PropertyAccessorBuilder.php b/vendor/symfony/property-access/Symfony/Component/PropertyAccess/PropertyAccessorBuilder.php deleted file mode 100644 index 25686e95..00000000 --- a/vendor/symfony/property-access/Symfony/Component/PropertyAccess/PropertyAccessorBuilder.php +++ /dev/null | |||
@@ -1,67 +0,0 @@ | |||
1 | <?php | ||
2 | |||
3 | /* | ||
4 | * This file is part of the Symfony package. | ||
5 | * | ||
6 | * (c) Fabien Potencier <fabien@symfony.com> | ||
7 | * | ||
8 | * For the full copyright and license information, please view the LICENSE | ||
9 | * file that was distributed with this source code. | ||
10 | */ | ||
11 | |||
12 | namespace Symfony\Component\PropertyAccess; | ||
13 | |||
14 | /** | ||
15 | * A configurable builder for PropertyAccessorInterface objects. | ||
16 | * | ||
17 | * @author Jérémie Augustin <jeremie.augustin@pixel-cookers.com> | ||
18 | */ | ||
19 | class PropertyAccessorBuilder | ||
20 | { | ||
21 | /** | ||
22 | * @var Boolean | ||
23 | */ | ||
24 | private $magicCall = false; | ||
25 | |||
26 | /** | ||
27 | * Enables the use of "__call" by the ProperyAccessor. | ||
28 | * | ||
29 | * @return PropertyAccessorBuilder The builder object | ||
30 | */ | ||
31 | public function enableMagicCall() | ||
32 | { | ||
33 | $this->magicCall = true; | ||
34 | |||
35 | return $this; | ||
36 | } | ||
37 | |||
38 | /** | ||
39 | * Disables the use of "__call" by the ProperyAccessor. | ||
40 | * | ||
41 | * @return PropertyAccessorBuilder The builder object | ||
42 | */ | ||
43 | public function disableMagicCall() | ||
44 | { | ||
45 | $this->magicCall = false; | ||
46 | |||
47 | return $this; | ||
48 | } | ||
49 | |||
50 | /** | ||
51 | * @return Boolean true if the use of "__call" by the ProperyAccessor is enabled | ||
52 | */ | ||
53 | public function isMagicCallEnabled() | ||
54 | { | ||
55 | return $this->magicCall; | ||
56 | } | ||
57 | |||
58 | /** | ||
59 | * Builds and returns a new propertyAccessor object. | ||
60 | * | ||
61 | * @return PropertyAccessorInterface The built propertyAccessor | ||
62 | */ | ||
63 | public function getPropertyAccessor() | ||
64 | { | ||
65 | return new PropertyAccessor($this->magicCall); | ||
66 | } | ||
67 | } | ||