From 6c9bb86b47792a8a87cf77a14159d16a1ad29e15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=83=C2=A9vin=20Dunglas?= Date: Sat, 5 Dec 2015 00:04:49 +0100 Subject: [PATCH] [PropertyAccess] minor: constants as internal and removed unused var --- .../PropertyAccess/PropertyAccessor.php | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/src/Symfony/Component/PropertyAccess/PropertyAccessor.php b/src/Symfony/Component/PropertyAccess/PropertyAccessor.php index a55ccf3399..5270df26f3 100644 --- a/src/Symfony/Component/PropertyAccess/PropertyAccessor.php +++ b/src/Symfony/Component/PropertyAccess/PropertyAccessor.php @@ -21,18 +21,69 @@ use Symfony\Component\PropertyAccess\Exception\UnexpectedTypeException; */ class PropertyAccessor implements PropertyAccessorInterface { + /** + * @internal + */ const VALUE = 0; + + /** + * @internal + */ const IS_REF = 1; + + /** + * @internal + */ const ACCESS_HAS_PROPERTY = 0; + + /** + * @internal + */ const ACCESS_TYPE = 1; + + /** + * @internal + */ const ACCESS_NAME = 2; + + /** + * @internal + */ const ACCESS_REF = 3; + + /** + * @internal + */ const ACCESS_ADDER = 4; + + /** + * @internal + */ const ACCESS_REMOVER = 5; + + /** + * @internal + */ const ACCESS_TYPE_METHOD = 0; + + /** + * @internal + */ const ACCESS_TYPE_PROPERTY = 1; + + /** + * @internal + */ const ACCESS_TYPE_MAGIC = 2; + + /** + * @internal + */ const ACCESS_TYPE_ADDER_AND_REMOVER = 3; + + /** + * @internal + */ const ACCESS_TYPE_NOT_FOUND = 4; private $magicCall;