PropertyAccess.php 954 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\PropertyAccess;
  11. /**
  12. * Entry point of the PropertyAccess component.
  13. *
  14. * @author Bernhard Schussek <bschussek@gmail.com>
  15. */
  16. final class PropertyAccess
  17. {
  18. /**
  19. * Creates a property accessor with the default configuration.
  20. *
  21. * @return PropertyAccessor
  22. */
  23. public static function createPropertyAccessor(): PropertyAccessor
  24. {
  25. return self::createPropertyAccessorBuilder()->getPropertyAccessor();
  26. }
  27. public static function createPropertyAccessorBuilder(): PropertyAccessorBuilder
  28. {
  29. return new PropertyAccessorBuilder();
  30. }
  31. /**
  32. * This class cannot be instantiated.
  33. */
  34. private function __construct()
  35. {
  36. }
  37. }