plugin/team/Manager/TeamManager.php
public function getTeamsByUserAndWorkspace(User $user, Workspace $workspace)
    {
        return $this->teamRepo->findTeamsByUserAndWorkspace($user, $workspace);
    }
public function getTeamsByUserAndWorkspace(User $user, Workspace $workspace)
    {
        return $this->teamRepo->findTeamsByUserAndWorkspace($user, $workspace);
    }
public function getTeamsByUserAndWorkspace ( User $ user , Workspace $ workspace ) { return $ this -> teamRepo -> findTeamsByUserAndWorkspace ( $ user , $ workspace ) ; }
Gets user teams in a workspace.

@param User      $user
@param Workspace $workspace

@return array
Gets user teams in a workspace .