| Total Complexity | 2 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 20 | class ClientCertificate extends Model |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var bool |
||
| 24 | */ |
||
| 25 | public $timestamps = false; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * The attributes that are mass assignable. |
||
| 29 | * |
||
| 30 | * @var array |
||
| 31 | */ |
||
| 32 | protected $fillable = [ |
||
| 33 | 'fingerprint', 'expires', 'certificate', 'private_key', 'private_key_pass', |
||
| 34 | ]; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @var array |
||
| 38 | */ |
||
| 39 | protected static $rules = [ |
||
| 40 | 'certificate' => 'required', |
||
| 41 | 'private_key' => 'required', |
||
| 42 | 'private_key_pass' => '', |
||
| 43 | ]; |
||
| 44 | |||
| 45 | /** |
||
| 46 | * One to many relation |
||
| 47 | * |
||
| 48 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
||
| 49 | 3 | */ |
|
| 50 | public function dedicatedServers() |
||
| 51 | 3 | { |
|
| 52 | return $this->hasMany(DedicatedServer::class); |
||
| 53 | } |
||
| 54 | |||
| 55 | public function getInfoAttribute() |
||
| 58 | } |
||
| 59 | } |
||
| 60 |