| Total Complexity | 3 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class DoctorSpecialization extends Model |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | protected $table = 'doctor_specializations'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | public $primaryKey = 'id'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var bool |
||
| 21 | */ |
||
| 22 | public $timestamps = true; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var array |
||
| 26 | */ |
||
| 27 | protected $dates = [ |
||
| 28 | 'created_at', |
||
| 29 | 'updated_at' |
||
| 30 | ]; |
||
| 31 | |||
| 32 | public function doctor() { |
||
| 33 | return $this->hasOne('App\Doctor', 'specialization_id'); |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param $str |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | public function trimStr($str) |
||
| 46 | } |
||
| 47 | } |
||
| 48 |