| Total Complexity | 5 |
| Total Lines | 65 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 9 | class Unique_user_id extends Model |
||
| 10 | { |
||
| 11 | |||
| 12 | /** |
||
| 13 | * The database table used by the model. |
||
| 14 | * |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $table = 'unique_user_id'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Attributes that should be mass-assignable. |
||
| 21 | * |
||
| 22 | * @var array |
||
| 23 | */ |
||
| 24 | protected $fillable = ['unique_id', 'security_user_id']; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * The attributes excluded from the model's JSON form. |
||
| 28 | * |
||
| 29 | * @var array |
||
| 30 | */ |
||
| 31 | protected $hidden = []; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * The attributes that should be casted to native types. |
||
| 35 | * |
||
| 36 | * @var array |
||
| 37 | */ |
||
| 38 | protected $casts = []; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * The attributes that should be mutated to dates. |
||
| 42 | * |
||
| 43 | * @var array |
||
| 44 | */ |
||
| 45 | protected $dates = []; |
||
| 46 | |||
| 47 | public function __construct() |
||
| 48 | { |
||
| 49 | $this->uniqueUserId = new UniqueUid(); |
||
|
|
|||
| 50 | } |
||
| 51 | |||
| 52 | |||
| 53 | |||
| 54 | public function updateOrInsertRecord($user) |
||
| 74 | } |
||
| 75 | } |
||
| 77 |
Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.