Skip to content

Commit

Permalink
Changed self:: methods to static:: to allow overriding its behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
nilportugues committed Oct 16, 2015
1 parent 0a1e7a9 commit 817bdad
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Mapping/MappingFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -74,10 +80,6 @@ public static function fromClass($className)
return static::fromArray($mappedClass);
}

/**
* @var array
*/
protected static $classProperties = [];

/**
* @param array $mappedClass
Expand Down

0 comments on commit 817bdad

Please sign in to comment.