src/Model/Player.php
public function team()
    {
        $teams = $this->rec->teams();
        foreach ($teams as $team) {
            if ($team->index() === $this->teamIndex) {
                return $team;
            }
        }
    }
public function team()
    {
        $teams = $this->rec->teams();
        foreach ($teams as $team) {
            if ($team->index() === $this->teamIndex) {
                return $team;
            }
        }
    }
public function team ( ) { $ teams = $ this -> rec -> teams ( ) ; foreach ( $ teams as $ team ) { if ( $ team -> index ( ) === $ this -> teamIndex ) { return $ team ; } } }
Get the player's team.

@return \RecAnalyst\Model\Team|null
Get the player s team .