Scalr\Api\Service\Account\V1beta0\Controller\Teams::getTeam PHP Метод

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

Gets Team entity
public getTeam ( string $teamId ) : Team
$teamId string Unique identifier of the Team
Результат Scalr\Model\Entity\Account\Team
    public function getTeam($teamId)
    {
        /* @var $team Team */
        $team = Team::findOne(array_merge($this->getDefaultCriteria(), [['id' => $teamId]]));
        if (empty($team)) {
            throw new ApiErrorException(404, ErrorMessage::ERR_OBJECT_NOT_FOUND, "Requested Team either does not exist or is not owned by your account.");
        }
        return $team;
    }