implement todos

This commit is contained in:
Dennis Eichhorn 2021-07-15 21:51:30 +02:00
parent 5f1d11614b
commit 5e54d2bf6a
3 changed files with 31 additions and 5 deletions

BIN
Docs/Dev/img/er.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 KiB

View File

@ -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;
}

View File

@ -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
*