Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
895 B
PHP
Raw Permalink Normal View History

2019-08-24 23:52:10 +02:00
<?php
namespace App\Models;
use LibreNMS\Interfaces\Models\Keyable;
class EntPhysical extends DeviceRelatedModel implements Keyable
2019-08-24 23:52:10 +02:00
{
protected $table = 'entPhysical';
protected $primaryKey = 'entPhysical_id';
public $timestamps = false;
protected $fillable = [
'entPhysicalIndex',
'entPhysicalDescr',
'entPhysicalContainedIn',
'entPhysicalClass',
'entPhysicalName',
'entPhysicalSerialNum',
'entPhysicalModelName',
'entPhysicalMfgName',
'entPhysicalVendorType',
'entPhysicalParentRelPos',
'entPhysicalHardwareRev',
'entPhysicalFirmwareRev',
'entPhysicalSoftwareRev',
'entPhysicalIsFRU',
'entPhysicalAlias',
'entPhysicalAssetID',
'ifIndex',
];
public function getCompositeKey()
{
return $this->entPhysicalIndex;
}
2019-08-24 23:52:10 +02:00
}