Scalr\Model\Entity\Farm::getTeams PHP Метод

getTeams() публичный Метод

Gets the list of the Teams which own the Farm
public getTeams ( ) : EntityIterator | Team[]
Результат Scalr\Model\Collections\EntityIterator | Scalr\Model\Entity\Account\Team[]
    public function getTeams()
    {
        if (empty($this->_teams)) {
            $team = new Team();
            $farmTeam = new FarmTeam();
            $this->_teams = Team::find([AbstractEntity::STMT_FROM => " {$team->table()}\n                    JOIN {$farmTeam->table('ft')} ON {$farmTeam->columnTeamId('ft')} = {$team->columnId()}\n                        AND {$farmTeam->columnFarmId('ft')} = " . $farmTeam->qstr('farmId', $this->id) . "\n                    "]);
        }
        return $this->_teams;
    }