| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function __construct(array $rules = []) |
||
| 14 | { |
||
| 15 | parent::__construct( |
||
| 16 | [ |
||
| 17 | 'uuid' => [_('Remote id'), 'required|max:255|unique_with:users,provider_id{excludeCurrentId}'], |
||
| 18 | 'name' => [_('Name'), 'max:255'], |
||
| 19 | 'nickname' => [_('Nickname'), 'max:255'], |
||
| 20 | 'email' => [_('E-mail'), 'max:255|email|unique_with:users,provider_id{excludeCurrentId}'], |
||
| 21 | 'avatar' => [_('Avatar'), 'max:255|url'], |
||
| 22 | 'language_id' => [_('Language'), 'required|integer|exists:languages,id'], |
||
| 23 | 'provider_id' => [_('Provider'), 'required|integer|exists:providers,id'], |
||
| 24 | 'role_id' => [_('Role'), 'required|integer|exists:roles,id'], |
||
| 25 | ] |
||
| 26 | ); |
||
| 27 | } |
||
| 28 | } |
||
| 29 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.