| 1 | <?php |
||
| 16 | class ScopeFactory implements ScopeFactoryInterface |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var Manager |
||
| 20 | */ |
||
| 21 | private $manager; |
||
| 22 | |||
| 23 | 35 | public function __construct(Manager $manager) |
|
| 27 | |||
| 28 | /** |
||
| 29 | * @param ResourceInterface $resource |
||
| 30 | * @param string|null $scopeIdentifier |
||
| 31 | * @return Scope |
||
| 32 | */ |
||
| 33 | 34 | public function createScopeFor(ResourceInterface $resource, $scopeIdentifier = null) |
|
| 37 | |||
| 38 | /** |
||
| 39 | * @param Scope $parentScopeInstance |
||
| 40 | * @param ResourceInterface $resource |
||
| 41 | * @param string|null $scopeIdentifier |
||
| 42 | * @return Scope |
||
| 43 | */ |
||
| 44 | 28 | public function createChildScopeFor(Scope $parentScopeInstance, ResourceInterface $resource, $scopeIdentifier = null) |
|
| 57 | } |
||
| 58 |