| Conditions | 1 |
| Paths | 1 |
| Total Lines | 30 |
| Code Lines | 21 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 22 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 53 | 4 | public function initialize() |
|
| 54 | { |
||
| 55 | 4 | $this->setSource('user_roles'); |
|
| 56 | |||
| 57 | 4 | $this->belongsTo( |
|
| 58 | 4 | 'users_id', |
|
| 59 | 4 | 'Canvas\Models\Users', |
|
| 60 | 4 | 'id', |
|
| 61 | 4 | ['alias' => 'user'] |
|
| 62 | ); |
||
| 63 | |||
| 64 | 4 | $this->belongsTo( |
|
| 65 | 4 | 'roles_id', |
|
| 66 | 4 | 'Canvas\Models\Roles', |
|
| 67 | 4 | 'id', |
|
| 68 | 4 | ['alias' => 'roles'] |
|
| 69 | ); |
||
| 70 | |||
| 71 | 4 | $this->belongsTo( |
|
| 72 | 4 | 'apps_id', |
|
| 73 | 4 | 'Canvas\Models\Apps', |
|
| 74 | 4 | 'id', |
|
| 75 | 4 | ['alias' => 'app'] |
|
| 76 | ); |
||
| 77 | |||
| 78 | 4 | $this->belongsTo( |
|
| 79 | 4 | 'companies_id', |
|
| 80 | 4 | 'Canvas\Models\Companies', |
|
| 81 | 4 | 'id', |
|
| 82 | 4 | ['alias' => 'company'] |
|
| 83 | ); |
||
| 96 |