| Total Complexity | 2 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class AnonymousUserFactory implements Factory |
||
| 11 | { |
||
| 12 | use Configurable; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Default field values to assign to anonymous user |
||
| 16 | * |
||
| 17 | * @var array |
||
| 18 | */ |
||
| 19 | private static $anonymous_fields = [ |
||
|
|
|||
| 20 | 'FirstName' => 'Anonymous', |
||
| 21 | ]; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Creates a new service instance. |
||
| 25 | * |
||
| 26 | * @param string $service The class name of the service. |
||
| 27 | * @param array $params The constructor parameters. |
||
| 28 | * @return Member The member that was created |
||
| 29 | * @throws ValidationException |
||
| 30 | */ |
||
| 31 | public function create($service, array $params = array()) |
||
| 53 |