mirror of
https://github.com/Karaka-Management/oms-ItemManagement.git
synced 2026-02-08 00:08:41 +00:00
implement todos
This commit is contained in:
parent
5f1d11614b
commit
5e54d2bf6a
BIN
Docs/Dev/img/er.png
Normal file
BIN
Docs/Dev/img/er.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 208 KiB |
|
|
@ -26,11 +26,11 @@ use phpOMS\Stdlib\Base\Enum;
|
|||
*/
|
||||
abstract class AttributeValueType extends Enum
|
||||
{
|
||||
public const _INT = 0;
|
||||
public const _INT = 1;
|
||||
|
||||
public const _STRING = 1;
|
||||
public const _STRING = 2;
|
||||
|
||||
public const _FLOAT = 2;
|
||||
public const _FLOAT = 3;
|
||||
|
||||
public const _DATETIME = 3;
|
||||
public const _DATETIME = 4;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -200,7 +200,33 @@ class Item
|
|||
}
|
||||
|
||||
/**
|
||||
* Add doc to item
|
||||
* Add attribute to item
|
||||
*
|
||||
* @param ItemAttribute $attribute Note
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function addAttribute(ItemAttribute $attribute) : void
|
||||
{
|
||||
$this->attributes[] = $attribute;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get attributes
|
||||
*
|
||||
* @return ItemAttribute[]
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getAttributes() : array
|
||||
{
|
||||
return $this->attributes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add note to item
|
||||
*
|
||||
* @param EditorDoc $note Note
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user