4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\PropertyAccess
;
15 * Entry point of the PropertyAccess component.
17 * @author Bernhard Schussek <bschussek@gmail.com>
19 final class PropertyAccess
22 * Creates a property accessor with the default configuration.
24 * @return PropertyAccessor The new property accessor
26 public static function createPropertyAccessor()
28 return self
::createPropertyAccessorBuilder()->getPropertyAccessor();
32 * Creates a property accessor builder.
34 * @return PropertyAccessorBuilder The new property accessor builder
36 public static function createPropertyAccessorBuilder()
38 return new PropertyAccessorBuilder();
42 * Alias of {@link getPropertyAccessor}.
44 * @return PropertyAccessor The new property accessor
46 * @deprecated Deprecated since version 2.3, to be removed in 3.0. Use
47 * {@link createPropertyAccessor()} instead.
49 public static function getPropertyAccessor()
51 return self
::createPropertyAccessor();
55 * This class cannot be instantiated.
57 private function __construct()