| Total Complexity | 2 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | class ServerTask extends Model |
||
| 26 | { |
||
| 27 | public $table = 'servers_tasks'; |
||
| 28 | |||
| 29 | protected $casts = [ |
||
| 30 | 'id' => 'integer', |
||
| 31 | 'server_id' => 'integer', |
||
| 32 | 'repeat' => 'integer', |
||
| 33 | 'repeat_period' => 'integer', |
||
| 34 | 'counter' => 'integer', |
||
| 35 | ]; |
||
| 36 | |||
| 37 | protected $fillable = [ |
||
| 38 | 'command', |
||
| 39 | 'server_id', |
||
| 40 | 'repeat', |
||
| 41 | 'repeat_period', |
||
| 42 | 'execute_date', |
||
| 43 | ]; |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
| 47 | */ |
||
| 48 | public function server() |
||
| 49 | { |
||
| 50 | return $this->belongsTo(Server::class); |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
||
| 55 | */ |
||
| 56 | public function fails() |
||
| 59 | } |
||
| 60 | } |
||
| 61 |