2013-01-07 08:19:31 +00:00
< ? php
/*
* This file is part of the Symfony package .
*
* ( c ) Fabien Potencier < fabien @ symfony . com >
*
* For the full copyright and license information , please view the LICENSE
* file that was distributed with this source code .
*/
namespace Symfony\Component\PropertyAccess ;
/**
* Entry point of the PropertyAccess component .
*
* @ author Bernhard Schussek < bschussek @ gmail . com >
*/
final class PropertyAccess
{
/**
* Creates a property accessor with the default configuration .
*
2016-12-26 07:50:27 +00:00
* @ return PropertyAccessor
2013-01-07 08:19:31 +00:00
*/
2013-04-25 17:28:27 +01:00
public static function createPropertyAccessor ()
2013-01-07 08:19:31 +00:00
{
2013-04-25 17:28:27 +01:00
return self :: createPropertyAccessorBuilder () -> getPropertyAccessor ();
2013-01-07 08:19:31 +00:00
}
2013-03-04 22:59:45 +00:00
/**
* Creates a property accessor builder .
*
2017-02-02 05:03:53 +00:00
* @ return PropertyAccessorBuilder
2013-03-04 22:59:45 +00:00
*/
2013-04-25 17:28:27 +01:00
public static function createPropertyAccessorBuilder ()
2013-03-04 22:59:45 +00:00
{
return new PropertyAccessorBuilder ();
}
2013-04-25 17:28:27 +01:00
/**
2015-01-02 16:09:32 +00:00
* Alias of { @ link createPropertyAccessor } .
2013-04-25 17:28:27 +01:00
*
2016-12-26 07:50:27 +00:00
* @ return PropertyAccessor
2013-04-25 17:28:27 +01:00
*
2014-12-29 23:26:56 +00:00
* @ deprecated since version 2.3 , to be removed in 3.0 .
* Use { @ link createPropertyAccessor ()} instead .
2013-04-25 17:28:27 +01:00
*/
public static function getPropertyAccessor ()
{
2015-06-07 07:33:05 +01:00
@ trigger_error ( 'The ' . __METHOD__ . ' method is deprecated since version 2.3 and will be removed in 3.0. Use the createPropertyAccessor() method instead.' , E_USER_DEPRECATED );
2014-11-29 11:06:00 +00:00
2013-04-25 17:28:27 +01:00
return self :: createPropertyAccessor ();
}
2013-01-07 08:19:31 +00:00
/**
* This class cannot be instantiated .
*/
private function __construct ()
{
}
}