/** * @param Profession $profession * @param string $skillType * @param Tables $tables * @return int */ public function getSkillPoints(Profession $profession, $skillType, Tables $tables) { return $tables->getBackgroundSkillsTable()->getSkillPoints($this->getSpentBackgroundPoints(), $profession->getValue(), $skillType); }