/** * @param ItemId $id * @param StringLiteral $name * @param Uri $icon */ public function __construct(ItemId $id, StringLiteral $name, Uri $icon) { $this->id = $id; $this->name = $name; $this->icon = $icon; $this->bindingType = BindingType::NONE(); $this->value = new Integer(0); $this->stackCount = new Integer(0); $this->minimumLevel = new Integer(0); $this->modifications = new ModificationCollection(); }
public function testBindingType() { $this->assertEquals(BindingType::NONE(), $this->item->getBindingType()); $this->item = $this->item->withBindingType(BindingType::EQUIP()); $this->assertEquals(BindingType::EQUIP(), $this->item->getBindingType()); }