/** * @param PhysicalSkillPoint $physicalSkillPoint * @throws \DrdPlus\Skills\Exceptions\UnexpectedRankValue * @throws \DrdPlus\Skills\Exceptions\CanNotVerifyOwningSkill * @throws \DrdPlus\Skills\Exceptions\CanNotVerifyPaidSkillPoint */ public function addSkillRank(PhysicalSkillPoint $physicalSkillPoint) { /** @noinspection ExceptionsAnnotatingAndHandlingInspection */ parent::addTypeVerifiedSkillRank(new PhysicalSkillRank($this, $physicalSkillPoint, new PositiveIntegerObject($this->getCurrentSkillRank()->getValue() + 1))); }
protected function I_can_ask_it_which_type_is_it(Skill $skill) { // should be only one type self::assertSame(1, $this->shouldBePhysical() + $this->shouldBePsychical() + $this->shouldBeCombined()); self::assertSame($this->shouldBePhysical(), $skill->isPhysical()); self::assertSame($this->shouldBePsychical(), $skill->isPsychical()); self::assertSame($this->shouldBeCombined(), $skill->isCombined()); }