Get a champion by its id.

@param int $championId
@return Champion|null
976061
public function getChampion($championId)
	{
		if ( ! isset($this->info['champions'][$championId]))
		{
			return null;
		}

		return $this->info['champions'][$championId];
	}
82674
public function findById($entityId)
    {
        $this->adapter->select($this->entityTable, "id = {$entityId}");

        if (($data = $this->adapter->fetch()) !== false) {
            return $this->createEntity($data);
        }

        return null;
    }
1250788
public static function getChampionIcon( string $champion_name, array $attributes = [] ): Html
	{
		self::checkInit();

		$attrs = array_merge([ 'alt' => $champion_name ], self::getSetting(self::SET_CUSTOM_IMG_ATTRS, []), $attributes);
		$attrs['class'] = implode(' ', [
			self::getSetting(self::SET_DEFAULT_CLASS),
			self::getSetting(self::SET_CHAMP_ICON_CLASS),
			@self::getSetting(self::SET_CUSTOM_IMG_ATTRS, [])['class'],
			@$attributes['class'],
		]);
		$attrs['src'] = self::getChampionIconUrl($champion_name);

		return Html::el('img', $attrs);
	}
1122514
public function setData($data)
    {
        foreach ($data as $key => $dtoData) {
            $this->data[$key] = new ChampionDto($dtoData);
        }
    
        return $this;
    }
1253670
public static function getChampionIconUrl( string $champion_name ): string
	{
		self::checkInit();
		return self::getSetting(self::SET_ENDPOINT) . self::getSetting(self::SET_VERSION) . "/img/champion/{$champion_name}.png";
	}
653260
public function getTokenStatusLinkForTokenId($tokenId)
    {
        $token = $tokenId ? $this->loader->getTracker()->getToken($tokenId) : null;

        if (! ($tokenId && $token->exists)) {
            return $this->getStatusIcon('D');
        }

        return $this->getTokenStatusLink(
                $tokenId, $token->getStatusCode(),
                $token->getPatientNumber(), $token->getRoundDescription(),
                $token->getSurveyName(), $token->getResult()
                );
    }
1032787
public static function getChampionLoading( string $champion_name, int $skin = 0, array $attributes = [] ): Html
	{
		$attrs = array_merge([ 'alt' => $champion_name ], self::getSetting(self::SET_CUSTOM_IMG_ATTRS, []), $attributes);
		$attrs['class'] = implode(' ', [
			self::getSetting(self::SET_DEFAULT_CLASS),
			self::getSetting(self::SET_CHAMP_LOADING_CLASS),
			@self::getSetting(self::SET_CUSTOM_IMG_ATTRS, [])['class'],
			@$attributes['class'],
		]);
		$attrs['src'] = self::getChampionLoadingUrl($champion_name, $skin);

		return Html::el('img', $attrs);
	}
1079990
public function getToken($tokenId)
    {
        $tracker = $this->loader->getTracker();
        $token = $tracker->getToken($tokenId);
        return $token;
    }
967995
public function getClientId($clientId = null)
    {

        // Return given parameter
        if ($clientId) {
            return $clientId;
        }

        // If clientId is null and no clientId has previously been set
        if (!$this->clientId) {
            throw new RequestRequiresClientIdException();
        }

        // Return clientId that has previously been set
        return $this->clientId;
    }
613064
public static function getData($syncid)
	{
		if ($syncid) {
			$db = Factory::getDBO();

			$query = $db->getQuery(true)
				->select('syncdata')
				->from('#__jfusion_sync')
				->where('syncid = ' . $db->quote($syncid));

			$db->setQuery($query);
			$data = $db->loadResult();
			if ($data) {
				return new Registry($data);
			}
		}
		return null;
	}
594548
public static function getChampionLoadingO( StaticChampionDto $champion, int $skin = 0, array $attributes = [] ): Html
	{
		return self::getChampionLoading($champion->id, $skin, $attributes);
	}
1336768
public function getCard($cardId)
    {
        if (!$this->stripe_id) {
            return null;
        }

        $customer = $this->asStripeCustomer();

        foreach ($customer->sources->data as $card) {
            if ($card->id === $cardId) {
                return $card;
            }
        }

        return null;
    }
49665
public function get($id)
    {
        if (!$this->isAllowed(RcmUserAclResourceProvider::RESOURCE_ID_ACL, 'read')) {
            $this->getResponse()->setStatusCode(Response::STATUS_CODE_401);

            return $this->getResponse();
        }

        $rcmUserService = $this->getRcmUserService();

        $requestUser = $rcmUserService->buildNewUser();

        $requestUser->setId($id);

        $userResult = $rcmUserService->readUser($requestUser);

        if (!$userResult->isSuccess()) {
            return new ApiJsonModel(
                null,
                1,
                "User was not found with id {$id}."
            );
        }

        $user = $userResult->getUser();

        $resourceId = $this->getRequestResourceId();
        $privileges = $this->getRequestPrivileges();

        $apiResponse = [
            'hasAccess' => $rcmUserService->isUserAllowed(
                $resourceId,
                $privileges,
                null,
                $user
            ),
            'resourceId' => $resourceId,
            'privileges' => $privileges,
            // 'user' => $user,
            'userRoles' => $user->getProperty(UserRoleProperty::PROPERTY_KEY)
        ];

        return new ApiJsonModel($apiResponse, 0, 'Success');
    }
1097861
public static function getChampionSplashUrl( string $champion_name, int $skin = 0 ): string
	{
		return self::getSetting(self::SET_ENDPOINT) . "img/champion/splash/{$champion_name}_{$skin}.jpg";
	}
1214189
public function getForId($customerId, $mandateId, array $parameters = [])
    {
        $this->parentId = $customerId;

        return parent::rest_read($mandateId, $parameters);
    }
935045
public function find($id)
    {
        return Arr::first($this->items, function ($key, Contract $skill) use ($id) {
            return $skill->getId() === $id;
        }, null);
    }
183446
public function get($rowId)
    {
        $content = $this->getContent();

        if ( ! $content->has($rowId))
            throw new InvalidRowIDException("The cart does not contain rowId {$rowId}.");

        return $content->get($rowId);
    }