diff options
Diffstat (limited to 'vendor/symfony/property-access/Symfony/Component/PropertyAccess/PropertyAccess.php')
-rw-r--r-- | vendor/symfony/property-access/Symfony/Component/PropertyAccess/PropertyAccess.php | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/vendor/symfony/property-access/Symfony/Component/PropertyAccess/PropertyAccess.php b/vendor/symfony/property-access/Symfony/Component/PropertyAccess/PropertyAccess.php new file mode 100644 index 00000000..3b234df9 --- /dev/null +++ b/vendor/symfony/property-access/Symfony/Component/PropertyAccess/PropertyAccess.php | |||
@@ -0,0 +1,60 @@ | |||
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 | * Entry point of the PropertyAccess component. | ||
16 | * | ||
17 | * @author Bernhard Schussek <bschussek@gmail.com> | ||
18 | */ | ||
19 | final class PropertyAccess | ||
20 | { | ||
21 | /** | ||
22 | * Creates a property accessor with the default configuration. | ||
23 | * | ||
24 | * @return PropertyAccessor The new property accessor | ||
25 | */ | ||
26 | public static function createPropertyAccessor() | ||
27 | { | ||
28 | return self::createPropertyAccessorBuilder()->getPropertyAccessor(); | ||
29 | } | ||
30 | |||
31 | /** | ||
32 | * Creates a property accessor builder. | ||
33 | * | ||
34 | * @return PropertyAccessorBuilder The new property accessor builder | ||
35 | */ | ||
36 | public static function createPropertyAccessorBuilder() | ||
37 | { | ||
38 | return new PropertyAccessorBuilder(); | ||
39 | } | ||
40 | |||
41 | /** | ||
42 | * Alias of {@link getPropertyAccessor}. | ||
43 | * | ||
44 | * @return PropertyAccessor The new property accessor | ||
45 | * | ||
46 | * @deprecated Deprecated since version 2.3, to be removed in 3.0. Use | ||
47 | * {@link createPropertyAccessor()} instead. | ||
48 | */ | ||
49 | public static function getPropertyAccessor() | ||
50 | { | ||
51 | return self::createPropertyAccessor(); | ||
52 | } | ||
53 | |||
54 | /** | ||
55 | * This class cannot be instantiated. | ||
56 | */ | ||
57 | private function __construct() | ||
58 | { | ||
59 | } | ||
60 | } | ||