PlayerRecord::getSkills PHP Method

getSkills() public method

public getSkills ( )
    public function getSkills()
    {
        if ($this->_skills === null && $this->player_id !== null) {
            //lazy load the skill records
            $this->setSkills($this->withSkills()->findByPk($this->player_id)->skills);
        } else {
            if ($this->_skills === null) {
                //create new TList;
                $this->setSkills(new TList());
            }
        }
        return $this->_skills;
    }