/** * @return ModificationCollection */ public function getItemModifications() { $harness = (new Modification(new ItemId('20187'), new StringLiteral('Might Armoring 20'), new Uri('http://foo.bar/icon.harness.png')))->withValue(new Integer(1710))->withBindingType(BindingType::EQUIP())->withMinimumLevel(new Integer(45))->withDescription(new StringLiteral('This Armoring can be used to upgrade your armor.')); $overlay = (new Modification(new ItemId('73112'), new StringLiteral('Deft Mod 20A'), new Uri('http://foo.bar/icon.overlay.png')))->withValue(new Integer(455))->withBindingType(BindingType::EQUIP())->withMinimumLevel(new Integer(45))->withDescription(new StringLiteral('This Mod can be used to upgrade your weapons and armor.')); $support = (new Modification(new ItemId('55597'), new StringLiteral('Studious Enhancement 20'), new Uri('http://foo.bar/icon.support.png')))->withValue(new Integer(455))->withBindingType(BindingType::EQUIP())->withMinimumLevel(new Integer(45))->withDescription(new StringLiteral('This Enhancement can be used to upgrade your weapons and armor.')); return (new ModificationCollection())->withKey('Harness', $harness)->withKey('Overlay', $overlay)->withKey('Support', $support); }
public function testBindingType() { $this->assertEquals(BindingType::NONE(), $this->item->getBindingType()); $this->item = $this->item->withBindingType(BindingType::EQUIP()); $this->assertEquals(BindingType::EQUIP(), $this->item->getBindingType()); }