Exemplo n.º 1
0
 /**
  * @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();
 }
Exemplo n.º 2
0
 public function testBindingType()
 {
     $this->assertEquals(BindingType::NONE(), $this->item->getBindingType());
     $this->item = $this->item->withBindingType(BindingType::EQUIP());
     $this->assertEquals(BindingType::EQUIP(), $this->item->getBindingType());
 }