| Conditions | 2 |
| Paths | 2 |
| Total Lines | 20 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function getScopeEntityByIdentifier($scopeIdentifier) |
||
| 22 | { |
||
| 23 | $scopes = [ |
||
| 24 | 'basic' => [ |
||
| 25 | 'description' => 'Basic details about you', |
||
| 26 | ], |
||
| 27 | 'email' => [ |
||
| 28 | 'description' => 'Your email address', |
||
| 29 | ], |
||
| 30 | ]; |
||
| 31 | |||
| 32 | if (array_key_exists($scopeIdentifier, $scopes) === false) { |
||
| 33 | return; |
||
| 34 | } |
||
| 35 | |||
| 36 | $scope = new ScopeEntity(); |
||
| 37 | $scope->setIdentifier($scopeIdentifier); |
||
| 38 | |||
| 39 | return $scope; |
||
| 40 | } |
||
| 41 | |||
| 54 |