@@ -28,14 +28,14 @@ |
||
28 | 28 | */ |
29 | 29 | private WeakMap $restrictedEntityLookupMap; |
30 | 30 | |
31 | - public function __construct( EntityLookup $entityLookup, int $entityAccessLimit ) { |
|
31 | + public function __construct(EntityLookup $entityLookup, int $entityAccessLimit) { |
|
32 | 32 | $this->entityLookup = $entityLookup; |
33 | 33 | $this->entityAccessLimit = $entityAccessLimit; |
34 | 34 | $this->restrictedEntityLookupMap = new WeakMap(); |
35 | 35 | } |
36 | 36 | |
37 | - public function getRestrictedEntityLookup( Parser $parser ): RestrictedEntityLookup { |
|
38 | - $this->restrictedEntityLookupMap[$parser] ??= new RestrictedEntityLookup( $this->entityLookup, $this->entityAccessLimit ); |
|
37 | + public function getRestrictedEntityLookup(Parser $parser): RestrictedEntityLookup { |
|
38 | + $this->restrictedEntityLookupMap[$parser] ??= new RestrictedEntityLookup($this->entityLookup, $this->entityAccessLimit); |
|
39 | 39 | |
40 | 40 | return $this->restrictedEntityLookupMap[$parser]; |
41 | 41 | } |