| Total Complexity | 3 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class Repository extends Model |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * The "type" of the auto-incrementing ID. |
||
| 11 | * |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | protected $keyType = 'integer'; |
||
| 15 | |||
| 16 | protected $fillable = ['repo', 'name', 'addr_id', 'rin', 'phon', 'email', 'fax', 'www', 'name', 'description', 'type_id', 'is_active']; |
||
| 17 | |||
| 18 | protected $attributes = ['is_active' => false]; |
||
| 19 | |||
| 20 | protected $casts = ['is_active' => 'boolean']; |
||
| 21 | |||
| 22 | public function sources() |
||
| 25 | } |
||
| 26 | |||
| 27 | public function type() |
||
| 30 | } |
||
| 31 | |||
| 32 | public function addr() |
||
| 37 |