Skip to content

Commit 817bdad

Browse files
committed
Changed self:: methods to static:: to allow overriding its behaviour
1 parent 0a1e7a9 commit 817bdad

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/Mapping/MappingFactory.php

+6-4
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,15 @@ class MappingFactory
3030
const RELATIONSHIPS_KEY = 'relationships';
3131
const SELF_KEY = 'self';
3232

33+
/**
34+
* @var array
35+
*/
36+
protected static $classProperties = [];
37+
3338
/**
3439
* @param string $className
3540
*
41+
* @throws MappingException
3642
* @return Mapping
3743
*
3844
* @since 2.0.0
@@ -74,10 +80,6 @@ public static function fromClass($className)
7480
return static::fromArray($mappedClass);
7581
}
7682

77-
/**
78-
* @var array
79-
*/
80-
protected static $classProperties = [];
8183

8284
/**
8385
* @param array $mappedClass

0 commit comments

Comments
 (0)