22 lines
460 B
PHP
22 lines
460 B
PHP
<?php
|
|
|
|
namespace App\Entities\Part;
|
|
|
|
use App\Models\Part\SOFTWAREModel;
|
|
|
|
class SOFTWAREEntity extends PartEntity
|
|
{
|
|
const PK = SOFTWAREModel::PK;
|
|
const TITLE = SOFTWAREModel::TITLE;
|
|
const DEFAULT_STATUS = STATUS['AVAILABLE'];
|
|
//기본기능
|
|
final public function getUsed(): int
|
|
{
|
|
return $this->attributes['used'];
|
|
}
|
|
final public function getStock(): int
|
|
{
|
|
return $this->attributes['stock'];
|
|
}
|
|
}
|