34 lines
691 B
PHP
34 lines
691 B
PHP
<?php
|
|
|
|
namespace App\Entities\Part;
|
|
|
|
use App\Models\Part\IPModel;
|
|
|
|
class IPEntity extends PartEntity
|
|
{
|
|
const PK = IPModel::PK;
|
|
const TITLE = IPModel::TITLE;
|
|
public function getLineInfoUID(): int|null
|
|
{
|
|
return $this->attributes['lineinfo_uid'] ?? null;
|
|
}
|
|
public function getOldClientInfoUID(): int|null
|
|
{
|
|
return $this->attributes['old_clientinfo_uid'] ?? null;
|
|
}
|
|
//기본기능
|
|
public function getIP(): string
|
|
{
|
|
return $this->attributes['ip'];
|
|
}
|
|
//abstract 선언처리용
|
|
public function getUsed(): int
|
|
{
|
|
return 0;
|
|
}
|
|
public function getAvailable(): int
|
|
{
|
|
return 0;
|
|
}
|
|
}
|