From 817bdad071e7bef97d9a46604b4972f41bd4caa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nil=20Portugu=C3=A9s=20Calder=C3=B3?= Date: Fri, 16 Oct 2015 22:37:32 +0200 Subject: [PATCH] Changed self:: methods to static:: to allow overriding its behaviour --- src/Mapping/MappingFactory.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Mapping/MappingFactory.php b/src/Mapping/MappingFactory.php index 274851f..7e8352e 100644 --- a/src/Mapping/MappingFactory.php +++ b/src/Mapping/MappingFactory.php @@ -30,9 +30,15 @@ class MappingFactory const RELATIONSHIPS_KEY = 'relationships'; const SELF_KEY = 'self'; + /** + * @var array + */ + protected static $classProperties = []; + /** * @param string $className * + * @throws MappingException * @return Mapping * * @since 2.0.0 @@ -74,10 +80,6 @@ public static function fromClass($className) return static::fromArray($mappedClass); } - /** - * @var array - */ - protected static $classProperties = []; /** * @param array $mappedClass