Constructs a MediaContext

@param string $sid The unique string that identifies this resource
@return \Twilio\Rest\Api\V2010\Account\Message\MediaContext
515476
public function getContext($sid) {
        return new MediaContext(
            $this->version,
            $this->solution['accountSid'],
            $this->solution['messageSid'],
            $sid
        );
    }
1302674
public function getContext($sid) {
        return new PayloadContext(
            $this->version,
            $this->solution['accountSid'],
            $this->solution['referenceSid'],
            $this->solution['addOnResultSid'],
            $sid
        );
    }
1175518
protected function proxy() {
        if (!$this->context) {
            $this->context = new VerificationContext(
                $this->version,
                $this->solution['serviceSid'],
                $this->solution['sid']
            );
        }

        return $this->context;
    }
958477
public function getContext($sid) {
        return new ExecutionStepContext(
            $this->version,
            $this->solution['flowSid'],
            $this->solution['executionSid'],
            $sid
        );
    }
180950
protected function getDisplay_ACT(Certificate $certificate, $sid = null){    
        $html = '';
        if($certificate){
            $certificate->setSource($sid);
            $html = $certificate->displayImage('icon');
        }
        return $html;
    }
18343
def get(self, sid):
        
        return MemberContext(
            self._version,
            service_sid=self._solution['service_sid'],
            channel_sid=self._solution['channel_sid'],
            sid=sid,
        )
1239961
public function getContext($channelSid) {
        return new UserChannelContext(
            $this->version,
            $this->solution['serviceSid'],
            $this->solution['userSid'],
            $channelSid
        );
    }
687855
public function getContext($sid) {
        return new ChallengeContext(
            $this->version,
            $this->solution['serviceSid'],
            $this->solution['identity'],
            $this->solution['factorSid'],
            $sid
        );
    }
1021370
public function createInstance($sid ,$token, $version = null, $retryAttempts = 1)
    {
        return new \Services_Twilio($sid, $token, $version, null, $retryAttempts);
    }
994463
private function getUserFromSession($sid) {
        $session = $this->entityManager->getRepository("Emeric0101\PHPAngular\Entity\Session")->findBySid($sid);
        if (empty($session)) {
            return null;
        }
        // fix some bug with entity conflit
        $userLogged = $this->entityManager->find("Emeric0101\PHPAngular\Entity\IUser", $session[0]->getUser()->getId());

        return $userLogged;
    }
733987
protected function proxy() {
        if (!$this->context) {
            $this->context = new MediaContext(
                $this->version,
                $this->solution['accountSid'],
                $this->solution['messageSid'],
                $this->solution['sid']
            );
        }

        return $this->context;
    }
428584
public function getContext($sid) {
        return new IpAccessControlListMappingContext(
            $this->version,
            $this->solution['accountSid'],
            $this->solution['domainSid'],
            $sid
        );
    }
758903
public function setId($sId = null)
    {
        $sId = parent::setId($sId);

        // TODO: in \OxidEsales\Eshop\Core\Model\BaseModel::setId make it to check if exists and update, not recreate, then delete this overload
        $this->oxarticles__oxnid = $this->oxarticles__oxid;

        return $sId;
    }
856197
def get(self, sid):
        
        return AssetContext(self._version, service_sid=self._solution['service_sid'], sid=sid, )
100061
public function getConsoleUrl($sid = '') {
		$data = $this->_data;
		$data['sid'] = $sid;
		$this->_make_request(self::CONSOLE_URL, $data, 'POST');

		return $this->_response['console'];
	}
816066
public function getMediaId(): \Psr\Http\Message\UriInterface
    {
        if (!$this->mediaId) {
            return new Uri();
        }

        return $this->mediaId;
    }
621682
public function build(): SetEmulatedMediaRequest
	{
		$instance = new SetEmulatedMediaRequest();
		if ($this->media === null) {
			throw new BuilderException('Property [media] is required.');
		}
		$instance->media = $this->media;
		return $instance;
	}