Brak opisu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PropertyAccess.php 915B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. public static function createPropertyAccessor(): PropertyAccessor
  22. {
  23. return self::createPropertyAccessorBuilder()->getPropertyAccessor();
  24. }
  25. public static function createPropertyAccessorBuilder(): PropertyAccessorBuilder
  26. {
  27. return new PropertyAccessorBuilder();
  28. }
  29. /**
  30. * This class cannot be instantiated.
  31. */
  32. private function __construct()
  33. {
  34. }
  35. }