code
stringlengths
17
247k
docstring
stringlengths
30
30.3k
func_name
stringlengths
1
89
language
stringclasses
1 value
repo
stringlengths
7
63
path
stringlengths
7
153
url
stringlengths
51
209
license
stringclasses
4 values
public function setStatus($var) { GPBUtil::checkString($var, True); $this->status = $var; return $this; }
Generated from protobuf field <code>string status = 2;</code> @param string $var @return $this
setStatus
php
agence104/livekit-server-sdk-php
src/proto/Livekit/SIPStatus.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/SIPStatus.php
Apache-2.0
public function getWorkerId() { return $this->worker_id; }
Generated from protobuf field <code>string worker_id = 1;</code> @return string
getWorkerId
php
agence104/livekit-server-sdk-php
src/proto/Livekit/RegisterWorkerResponse.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/RegisterWorkerResponse.php
Apache-2.0
public function setWorkerId($var) { GPBUtil::checkString($var, True); $this->worker_id = $var; return $this; }
Generated from protobuf field <code>string worker_id = 1;</code> @param string $var @return $this
setWorkerId
php
agence104/livekit-server-sdk-php
src/proto/Livekit/RegisterWorkerResponse.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/RegisterWorkerResponse.php
Apache-2.0
public function getServerInfo() { return $this->server_info; }
Generated from protobuf field <code>.livekit.ServerInfo server_info = 3;</code> @return \Livekit\ServerInfo|null
getServerInfo
php
agence104/livekit-server-sdk-php
src/proto/Livekit/RegisterWorkerResponse.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/RegisterWorkerResponse.php
Apache-2.0
public function setServerInfo($var) { GPBUtil::checkMessage($var, \Livekit\ServerInfo::class); $this->server_info = $var; return $this; }
Generated from protobuf field <code>.livekit.ServerInfo server_info = 3;</code> @param \Livekit\ServerInfo $var @return $this
setServerInfo
php
agence104/livekit-server-sdk-php
src/proto/Livekit/RegisterWorkerResponse.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/RegisterWorkerResponse.php
Apache-2.0
public function getNamespace() { return isset($this->namespace) ? $this->namespace : ''; }
Generated from protobuf field <code>optional string namespace = 6;</code> @return string
getNamespace
php
agence104/livekit-server-sdk-php
src/proto/Livekit/RegisterWorkerRequest.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/RegisterWorkerRequest.php
Apache-2.0
public function setNamespace($var) { GPBUtil::checkString($var, True); $this->namespace = $var; return $this; }
Generated from protobuf field <code>optional string namespace = 6;</code> @param string $var @return $this
setNamespace
php
agence104/livekit-server-sdk-php
src/proto/Livekit/RegisterWorkerRequest.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/RegisterWorkerRequest.php
Apache-2.0
public function getAllowedPermissions() { return $this->allowed_permissions; }
Generated from protobuf field <code>.livekit.ParticipantPermission allowed_permissions = 7;</code> @return \Livekit\ParticipantPermission|null
getAllowedPermissions
php
agence104/livekit-server-sdk-php
src/proto/Livekit/RegisterWorkerRequest.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/RegisterWorkerRequest.php
Apache-2.0
public function setAllowedPermissions($var) { GPBUtil::checkMessage($var, \Livekit\ParticipantPermission::class); $this->allowed_permissions = $var; return $this; }
Generated from protobuf field <code>.livekit.ParticipantPermission allowed_permissions = 7;</code> @param \Livekit\ParticipantPermission $var @return $this
setAllowedPermissions
php
agence104/livekit-server-sdk-php
src/proto/Livekit/RegisterWorkerRequest.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/RegisterWorkerRequest.php
Apache-2.0
public function setItems($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Livekit\SIPInboundTrunkInfo::class); $this->items = $arr; return $this; }
Generated from protobuf field <code>repeated .livekit.SIPInboundTrunkInfo items = 1;</code> @param \Livekit\SIPInboundTrunkInfo[]|\Google\Protobuf\Internal\RepeatedField $var @return $this
setItems
php
agence104/livekit-server-sdk-php
src/proto/Livekit/ListSIPInboundTrunkResponse.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/ListSIPInboundTrunkResponse.php
Apache-2.0
public function getAudioMixing() { return $this->audio_mixing; }
only applies to audio_only egress (default DEFAULT_MIXING) Generated from protobuf field <code>.livekit.AudioMixing audio_mixing = 15;</code> @return int
getAudioMixing
php
agence104/livekit-server-sdk-php
src/proto/Livekit/RoomCompositeEgressRequest.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/RoomCompositeEgressRequest.php
Apache-2.0
public function setAudioMixing($var) { GPBUtil::checkEnum($var, \Livekit\AudioMixing::class); $this->audio_mixing = $var; return $this; }
only applies to audio_only egress (default DEFAULT_MIXING) Generated from protobuf field <code>.livekit.AudioMixing audio_mixing = 15;</code> @param int $var @return $this
setAudioMixing
php
agence104/livekit-server-sdk-php
src/proto/Livekit/RoomCompositeEgressRequest.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/RoomCompositeEgressRequest.php
Apache-2.0
public function getCustomBaseUrl() { return $this->custom_base_url; }
template base url (default https://recorder.livekit.io) Generated from protobuf field <code>string custom_base_url = 5;</code> @return string
getCustomBaseUrl
php
agence104/livekit-server-sdk-php
src/proto/Livekit/RoomCompositeEgressRequest.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/RoomCompositeEgressRequest.php
Apache-2.0
public function setCustomBaseUrl($var) { GPBUtil::checkString($var, True); $this->custom_base_url = $var; return $this; }
template base url (default https://recorder.livekit.io) Generated from protobuf field <code>string custom_base_url = 5;</code> @param string $var @return $this
setCustomBaseUrl
php
agence104/livekit-server-sdk-php
src/proto/Livekit/RoomCompositeEgressRequest.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/RoomCompositeEgressRequest.php
Apache-2.0
public function getFile() { @trigger_error('file is deprecated.', E_USER_DEPRECATED); return $this->readOneof(6); }
Generated from protobuf field <code>.livekit.EncodedFileOutput file = 6 [deprecated = true];</code> @return \Livekit\EncodedFileOutput|null @deprecated
getFile
php
agence104/livekit-server-sdk-php
src/proto/Livekit/RoomCompositeEgressRequest.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/RoomCompositeEgressRequest.php
Apache-2.0
public function setFile($var) { @trigger_error('file is deprecated.', E_USER_DEPRECATED); GPBUtil::checkMessage($var, \Livekit\EncodedFileOutput::class); $this->writeOneof(6, $var); return $this; }
Generated from protobuf field <code>.livekit.EncodedFileOutput file = 6 [deprecated = true];</code> @param \Livekit\EncodedFileOutput $var @return $this @deprecated
setFile
php
agence104/livekit-server-sdk-php
src/proto/Livekit/RoomCompositeEgressRequest.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/RoomCompositeEgressRequest.php
Apache-2.0
public function setStream($var) { @trigger_error('stream is deprecated.', E_USER_DEPRECATED); GPBUtil::checkMessage($var, \Livekit\StreamOutput::class); $this->writeOneof(7, $var); return $this; }
Generated from protobuf field <code>.livekit.StreamOutput stream = 7 [deprecated = true];</code> @param \Livekit\StreamOutput $var @return $this @deprecated
setStream
php
agence104/livekit-server-sdk-php
src/proto/Livekit/RoomCompositeEgressRequest.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/RoomCompositeEgressRequest.php
Apache-2.0
public function getSegments() { @trigger_error('segments is deprecated.', E_USER_DEPRECATED); return $this->readOneof(10); }
Generated from protobuf field <code>.livekit.SegmentedFileOutput segments = 10 [deprecated = true];</code> @return \Livekit\SegmentedFileOutput|null @deprecated
getSegments
php
agence104/livekit-server-sdk-php
src/proto/Livekit/RoomCompositeEgressRequest.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/RoomCompositeEgressRequest.php
Apache-2.0
public function setSegments($var) { @trigger_error('segments is deprecated.', E_USER_DEPRECATED); GPBUtil::checkMessage($var, \Livekit\SegmentedFileOutput::class); $this->writeOneof(10, $var); return $this; }
Generated from protobuf field <code>.livekit.SegmentedFileOutput segments = 10 [deprecated = true];</code> @param \Livekit\SegmentedFileOutput $var @return $this @deprecated
setSegments
php
agence104/livekit-server-sdk-php
src/proto/Livekit/RoomCompositeEgressRequest.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/RoomCompositeEgressRequest.php
Apache-2.0
public function getPreset() { return $this->readOneof(8); }
(default H264_720P_30) Generated from protobuf field <code>.livekit.EncodingOptionsPreset preset = 8;</code> @return int
getPreset
php
agence104/livekit-server-sdk-php
src/proto/Livekit/RoomCompositeEgressRequest.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/RoomCompositeEgressRequest.php
Apache-2.0
public function setPreset($var) { GPBUtil::checkEnum($var, \Livekit\EncodingOptionsPreset::class); $this->writeOneof(8, $var); return $this; }
(default H264_720P_30) Generated from protobuf field <code>.livekit.EncodingOptionsPreset preset = 8;</code> @param int $var @return $this
setPreset
php
agence104/livekit-server-sdk-php
src/proto/Livekit/RoomCompositeEgressRequest.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/RoomCompositeEgressRequest.php
Apache-2.0
public function getAdvanced() { return $this->readOneof(9); }
(optional) Generated from protobuf field <code>.livekit.EncodingOptions advanced = 9;</code> @return \Livekit\EncodingOptions|null
getAdvanced
php
agence104/livekit-server-sdk-php
src/proto/Livekit/RoomCompositeEgressRequest.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/RoomCompositeEgressRequest.php
Apache-2.0
public function setAdvanced($var) { GPBUtil::checkMessage($var, \Livekit\EncodingOptions::class); $this->writeOneof(9, $var); return $this; }
(optional) Generated from protobuf field <code>.livekit.EncodingOptions advanced = 9;</code> @param \Livekit\EncodingOptions $var @return $this
setAdvanced
php
agence104/livekit-server-sdk-php
src/proto/Livekit/RoomCompositeEgressRequest.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/RoomCompositeEgressRequest.php
Apache-2.0
public function getCanSubscribe() { return $this->can_subscribe; }
allow participant to subscribe to other tracks in the room Generated from protobuf field <code>bool can_subscribe = 1;</code> @return bool
getCanSubscribe
php
agence104/livekit-server-sdk-php
src/proto/Livekit/ParticipantPermission.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/ParticipantPermission.php
Apache-2.0
public function setCanSubscribe($var) { GPBUtil::checkBool($var); $this->can_subscribe = $var; return $this; }
allow participant to subscribe to other tracks in the room Generated from protobuf field <code>bool can_subscribe = 1;</code> @param bool $var @return $this
setCanSubscribe
php
agence104/livekit-server-sdk-php
src/proto/Livekit/ParticipantPermission.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/ParticipantPermission.php
Apache-2.0
public function getCanPublish() { return $this->can_publish; }
allow participant to publish new tracks to room Generated from protobuf field <code>bool can_publish = 2;</code> @return bool
getCanPublish
php
agence104/livekit-server-sdk-php
src/proto/Livekit/ParticipantPermission.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/ParticipantPermission.php
Apache-2.0
public function setCanPublish($var) { GPBUtil::checkBool($var); $this->can_publish = $var; return $this; }
allow participant to publish new tracks to room Generated from protobuf field <code>bool can_publish = 2;</code> @param bool $var @return $this
setCanPublish
php
agence104/livekit-server-sdk-php
src/proto/Livekit/ParticipantPermission.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/ParticipantPermission.php
Apache-2.0
public function getCanPublishData() { return $this->can_publish_data; }
allow participant to publish data Generated from protobuf field <code>bool can_publish_data = 3;</code> @return bool
getCanPublishData
php
agence104/livekit-server-sdk-php
src/proto/Livekit/ParticipantPermission.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/ParticipantPermission.php
Apache-2.0
public function setCanPublishData($var) { GPBUtil::checkBool($var); $this->can_publish_data = $var; return $this; }
allow participant to publish data Generated from protobuf field <code>bool can_publish_data = 3;</code> @param bool $var @return $this
setCanPublishData
php
agence104/livekit-server-sdk-php
src/proto/Livekit/ParticipantPermission.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/ParticipantPermission.php
Apache-2.0
public function getCanPublishSources() { return $this->can_publish_sources; }
sources that are allowed to be published Generated from protobuf field <code>repeated .livekit.TrackSource can_publish_sources = 9;</code> @return \Google\Protobuf\Internal\RepeatedField
getCanPublishSources
php
agence104/livekit-server-sdk-php
src/proto/Livekit/ParticipantPermission.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/ParticipantPermission.php
Apache-2.0
public function setCanPublishSources($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Livekit\TrackSource::class); $this->can_publish_sources = $arr; return $this; }
sources that are allowed to be published Generated from protobuf field <code>repeated .livekit.TrackSource can_publish_sources = 9;</code> @param int[]|\Google\Protobuf\Internal\RepeatedField $var @return $this
setCanPublishSources
php
agence104/livekit-server-sdk-php
src/proto/Livekit/ParticipantPermission.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/ParticipantPermission.php
Apache-2.0
public function getHidden() { return $this->hidden; }
indicates that it's hidden to others Generated from protobuf field <code>bool hidden = 7;</code> @return bool
getHidden
php
agence104/livekit-server-sdk-php
src/proto/Livekit/ParticipantPermission.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/ParticipantPermission.php
Apache-2.0
public function setHidden($var) { GPBUtil::checkBool($var); $this->hidden = $var; return $this; }
indicates that it's hidden to others Generated from protobuf field <code>bool hidden = 7;</code> @param bool $var @return $this
setHidden
php
agence104/livekit-server-sdk-php
src/proto/Livekit/ParticipantPermission.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/ParticipantPermission.php
Apache-2.0
public function getRecorder() { @trigger_error('recorder is deprecated.', E_USER_DEPRECATED); return $this->recorder; }
indicates it's a recorder instance deprecated: use ParticipantInfo.kind instead Generated from protobuf field <code>bool recorder = 8 [deprecated = true];</code> @return bool @deprecated
getRecorder
php
agence104/livekit-server-sdk-php
src/proto/Livekit/ParticipantPermission.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/ParticipantPermission.php
Apache-2.0
public function setRecorder($var) { @trigger_error('recorder is deprecated.', E_USER_DEPRECATED); GPBUtil::checkBool($var); $this->recorder = $var; return $this; }
indicates it's a recorder instance deprecated: use ParticipantInfo.kind instead Generated from protobuf field <code>bool recorder = 8 [deprecated = true];</code> @param bool $var @return $this @deprecated
setRecorder
php
agence104/livekit-server-sdk-php
src/proto/Livekit/ParticipantPermission.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/ParticipantPermission.php
Apache-2.0
public function getCanUpdateMetadata() { return $this->can_update_metadata; }
indicates that participant can update own metadata and attributes Generated from protobuf field <code>bool can_update_metadata = 10;</code> @return bool
getCanUpdateMetadata
php
agence104/livekit-server-sdk-php
src/proto/Livekit/ParticipantPermission.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/ParticipantPermission.php
Apache-2.0
public function setCanUpdateMetadata($var) { GPBUtil::checkBool($var); $this->can_update_metadata = $var; return $this; }
indicates that participant can update own metadata and attributes Generated from protobuf field <code>bool can_update_metadata = 10;</code> @param bool $var @return $this
setCanUpdateMetadata
php
agence104/livekit-server-sdk-php
src/proto/Livekit/ParticipantPermission.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/ParticipantPermission.php
Apache-2.0
public function getAgent() { @trigger_error('agent is deprecated.', E_USER_DEPRECATED); return $this->agent; }
indicates that participant is an agent deprecated: use ParticipantInfo.kind instead Generated from protobuf field <code>bool agent = 11 [deprecated = true];</code> @return bool @deprecated
getAgent
php
agence104/livekit-server-sdk-php
src/proto/Livekit/ParticipantPermission.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/ParticipantPermission.php
Apache-2.0
public function setAgent($var) { @trigger_error('agent is deprecated.', E_USER_DEPRECATED); GPBUtil::checkBool($var); $this->agent = $var; return $this; }
indicates that participant is an agent deprecated: use ParticipantInfo.kind instead Generated from protobuf field <code>bool agent = 11 [deprecated = true];</code> @param bool $var @return $this @deprecated
setAgent
php
agence104/livekit-server-sdk-php
src/proto/Livekit/ParticipantPermission.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/ParticipantPermission.php
Apache-2.0
public function getCanSubscribeMetrics() { return $this->can_subscribe_metrics; }
if a participant can subscribe to metrics Generated from protobuf field <code>bool can_subscribe_metrics = 12;</code> @return bool
getCanSubscribeMetrics
php
agence104/livekit-server-sdk-php
src/proto/Livekit/ParticipantPermission.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/ParticipantPermission.php
Apache-2.0
public function setCanSubscribeMetrics($var) { GPBUtil::checkBool($var); $this->can_subscribe_metrics = $var; return $this; }
if a participant can subscribe to metrics Generated from protobuf field <code>bool can_subscribe_metrics = 12;</code> @param bool $var @return $this
setCanSubscribeMetrics
php
agence104/livekit-server-sdk-php
src/proto/Livekit/ParticipantPermission.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/ParticipantPermission.php
Apache-2.0
public function getStreamId() { return $this->stream_id; }
unique identifier for this data stream Generated from protobuf field <code>string stream_id = 1;</code> @return string
getStreamId
php
agence104/livekit-server-sdk-php
src/proto/Livekit/DataStream/Header.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/DataStream/Header.php
Apache-2.0
public function setStreamId($var) { GPBUtil::checkString($var, True); $this->stream_id = $var; return $this; }
unique identifier for this data stream Generated from protobuf field <code>string stream_id = 1;</code> @param string $var @return $this
setStreamId
php
agence104/livekit-server-sdk-php
src/proto/Livekit/DataStream/Header.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/DataStream/Header.php
Apache-2.0
public function getTopic() { return $this->topic; }
Generated from protobuf field <code>string topic = 3;</code> @return string
getTopic
php
agence104/livekit-server-sdk-php
src/proto/Livekit/DataStream/Header.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/DataStream/Header.php
Apache-2.0
public function getTotalLength() { return isset($this->total_length) ? $this->total_length : 0; }
only populated for finite streams, if it's a stream of unknown size this stays empty Generated from protobuf field <code>optional uint64 total_length = 5;</code> @return int|string
getTotalLength
php
agence104/livekit-server-sdk-php
src/proto/Livekit/DataStream/Header.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/DataStream/Header.php
Apache-2.0
public function setTotalLength($var) { GPBUtil::checkUint64($var); $this->total_length = $var; return $this; }
only populated for finite streams, if it's a stream of unknown size this stays empty Generated from protobuf field <code>optional uint64 total_length = 5;</code> @param int|string $var @return $this
setTotalLength
php
agence104/livekit-server-sdk-php
src/proto/Livekit/DataStream/Header.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/DataStream/Header.php
Apache-2.0
public function getEncryptionType() { return $this->encryption_type; }
defaults to NONE Generated from protobuf field <code>.livekit.Encryption.Type encryption_type = 7;</code> @return int
getEncryptionType
php
agence104/livekit-server-sdk-php
src/proto/Livekit/DataStream/Header.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/DataStream/Header.php
Apache-2.0
public function setEncryptionType($var) { GPBUtil::checkEnum($var, \Livekit\Encryption\Type::class); $this->encryption_type = $var; return $this; }
defaults to NONE Generated from protobuf field <code>.livekit.Encryption.Type encryption_type = 7;</code> @param int $var @return $this
setEncryptionType
php
agence104/livekit-server-sdk-php
src/proto/Livekit/DataStream/Header.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/DataStream/Header.php
Apache-2.0
public function getTextHeader() { return $this->readOneof(9); }
Generated from protobuf field <code>.livekit.DataStream.TextHeader text_header = 9;</code> @return \Livekit\DataStream\TextHeader|null
getTextHeader
php
agence104/livekit-server-sdk-php
src/proto/Livekit/DataStream/Header.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/DataStream/Header.php
Apache-2.0
public function setTextHeader($var) { GPBUtil::checkMessage($var, \Livekit\DataStream\TextHeader::class); $this->writeOneof(9, $var); return $this; }
Generated from protobuf field <code>.livekit.DataStream.TextHeader text_header = 9;</code> @param \Livekit\DataStream\TextHeader $var @return $this
setTextHeader
php
agence104/livekit-server-sdk-php
src/proto/Livekit/DataStream/Header.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/DataStream/Header.php
Apache-2.0
public function getByteHeader() { return $this->readOneof(10); }
Generated from protobuf field <code>.livekit.DataStream.ByteHeader byte_header = 10;</code> @return \Livekit\DataStream\ByteHeader|null
getByteHeader
php
agence104/livekit-server-sdk-php
src/proto/Livekit/DataStream/Header.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/DataStream/Header.php
Apache-2.0
public function setByteHeader($var) { GPBUtil::checkMessage($var, \Livekit\DataStream\ByteHeader::class); $this->writeOneof(10, $var); return $this; }
Generated from protobuf field <code>.livekit.DataStream.ByteHeader byte_header = 10;</code> @param \Livekit\DataStream\ByteHeader $var @return $this
setByteHeader
php
agence104/livekit-server-sdk-php
src/proto/Livekit/DataStream/Header.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/DataStream/Header.php
Apache-2.0
public function getOperationType() { return $this->operation_type; }
Generated from protobuf field <code>.livekit.DataStream.OperationType operation_type = 1;</code> @return int
getOperationType
php
agence104/livekit-server-sdk-php
src/proto/Livekit/DataStream/TextHeader.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/DataStream/TextHeader.php
Apache-2.0
public function setOperationType($var) { GPBUtil::checkEnum($var, \Livekit\DataStream\OperationType::class); $this->operation_type = $var; return $this; }
Generated from protobuf field <code>.livekit.DataStream.OperationType operation_type = 1;</code> @param int $var @return $this
setOperationType
php
agence104/livekit-server-sdk-php
src/proto/Livekit/DataStream/TextHeader.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/DataStream/TextHeader.php
Apache-2.0
public function setVersion($var) { GPBUtil::checkInt32($var); $this->version = $var; return $this; }
Optional: Version for updates/edits Generated from protobuf field <code>int32 version = 2;</code> @param int $var @return $this
setVersion
php
agence104/livekit-server-sdk-php
src/proto/Livekit/DataStream/TextHeader.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/DataStream/TextHeader.php
Apache-2.0
public function getReplyToStreamId() { return $this->reply_to_stream_id; }
Optional: Reply to specific message Generated from protobuf field <code>string reply_to_stream_id = 3;</code> @return string
getReplyToStreamId
php
agence104/livekit-server-sdk-php
src/proto/Livekit/DataStream/TextHeader.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/DataStream/TextHeader.php
Apache-2.0
public function setReplyToStreamId($var) { GPBUtil::checkString($var, True); $this->reply_to_stream_id = $var; return $this; }
Optional: Reply to specific message Generated from protobuf field <code>string reply_to_stream_id = 3;</code> @param string $var @return $this
setReplyToStreamId
php
agence104/livekit-server-sdk-php
src/proto/Livekit/DataStream/TextHeader.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/DataStream/TextHeader.php
Apache-2.0
public function getAttachedStreamIds() { return $this->attached_stream_ids; }
file attachments for text streams Generated from protobuf field <code>repeated string attached_stream_ids = 4;</code> @return \Google\Protobuf\Internal\RepeatedField
getAttachedStreamIds
php
agence104/livekit-server-sdk-php
src/proto/Livekit/DataStream/TextHeader.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/DataStream/TextHeader.php
Apache-2.0
public function setAttachedStreamIds($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->attached_stream_ids = $arr; return $this; }
file attachments for text streams Generated from protobuf field <code>repeated string attached_stream_ids = 4;</code> @param string[]|\Google\Protobuf\Internal\RepeatedField $var @return $this
setAttachedStreamIds
php
agence104/livekit-server-sdk-php
src/proto/Livekit/DataStream/TextHeader.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/DataStream/TextHeader.php
Apache-2.0
public function getReason() { return $this->reason; }
reason why the stream was closed (could contain "error" / "interrupted" / empty for expected end) Generated from protobuf field <code>string reason = 2;</code> @return string
getReason
php
agence104/livekit-server-sdk-php
src/proto/Livekit/DataStream/Trailer.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/DataStream/Trailer.php
Apache-2.0
public function setReason($var) { GPBUtil::checkString($var, True); $this->reason = $var; return $this; }
reason why the stream was closed (could contain "error" / "interrupted" / empty for expected end) Generated from protobuf field <code>string reason = 2;</code> @param string $var @return $this
setReason
php
agence104/livekit-server-sdk-php
src/proto/Livekit/DataStream/Trailer.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/DataStream/Trailer.php
Apache-2.0
public function getChunkIndex() { return $this->chunk_index; }
Generated from protobuf field <code>uint64 chunk_index = 2;</code> @return int|string
getChunkIndex
php
agence104/livekit-server-sdk-php
src/proto/Livekit/DataStream/Chunk.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/DataStream/Chunk.php
Apache-2.0
public function setChunkIndex($var) { GPBUtil::checkUint64($var); $this->chunk_index = $var; return $this; }
Generated from protobuf field <code>uint64 chunk_index = 2;</code> @param int|string $var @return $this
setChunkIndex
php
agence104/livekit-server-sdk-php
src/proto/Livekit/DataStream/Chunk.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/DataStream/Chunk.php
Apache-2.0
public function getContent() { return $this->content; }
content as binary (bytes) Generated from protobuf field <code>bytes content = 3;</code> @return string
getContent
php
agence104/livekit-server-sdk-php
src/proto/Livekit/DataStream/Chunk.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/DataStream/Chunk.php
Apache-2.0
public function setContent($var) { GPBUtil::checkString($var, False); $this->content = $var; return $this; }
content as binary (bytes) Generated from protobuf field <code>bytes content = 3;</code> @param string $var @return $this
setContent
php
agence104/livekit-server-sdk-php
src/proto/Livekit/DataStream/Chunk.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/DataStream/Chunk.php
Apache-2.0
public function getIv() { return isset($this->iv) ? $this->iv : ''; }
optional, initialization vector for AES-GCM encryption Generated from protobuf field <code>optional bytes iv = 5;</code> @return string
getIv
php
agence104/livekit-server-sdk-php
src/proto/Livekit/DataStream/Chunk.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/DataStream/Chunk.php
Apache-2.0
public function setIv($var) { GPBUtil::checkString($var, False); $this->iv = $var; return $this; }
optional, initialization vector for AES-GCM encryption Generated from protobuf field <code>optional bytes iv = 5;</code> @param string $var @return $this
setIv
php
agence104/livekit-server-sdk-php
src/proto/Livekit/DataStream/Chunk.php
https://github.com/agence104/livekit-server-sdk-php/blob/master/src/proto/Livekit/DataStream/Chunk.php
Apache-2.0
public function __construct(array $maps) { $this->maps = $maps; }
Instantiates a new filesystem map. @param array $maps
__construct
php
KnpLabs/KnpGaufretteBundle
FilesystemMap.php
https://github.com/KnpLabs/KnpGaufretteBundle/blob/master/FilesystemMap.php
MIT
public function checkGatewayConnections($addresses_list) { if (empty($addresses_list)) { return; } foreach ($addresses_list as $addr) { if (!isset($this->_waitingConnectGatewayAddresses[$addr])) { $this->tryToConnectGateway($addr); } } }
检查 gateway 的通信端口是否都已经连 如果有未连接的端口,则尝试连接 @param array $addresses_list
checkGatewayConnections
php
walkor/GatewayWorker
src/BusinessWorker.php
https://github.com/walkor/GatewayWorker/blob/master/src/BusinessWorker.php
MIT
public function onConnectGateway($connection) { $this->gatewayConnections[$connection->remoteAddr] = $connection; unset($this->_connectingGatewayAddresses[$connection->remoteAddr], $this->_waitingConnectGatewayAddresses[$connection->remoteAddr]); }
当连接上 gateway 的通讯端口时触发 将连接 connection 对象保存起来 @param TcpConnection $connection @return void
onConnectGateway
php
walkor/GatewayWorker
src/BusinessWorker.php
https://github.com/walkor/GatewayWorker/blob/master/src/BusinessWorker.php
MIT
public function onClientConnect($connection) { $connection->id = self::generateConnectionId(); // 保存该连接的内部通讯的数据包报头,避免每次重新初始化 $connection->gatewayHeader = array( 'local_ip' => ip2long(gethostbyname($this->lanIp)), 'local_port' => $this->lanPort, 'client_ip' => ip2long($connection->getRemoteIp()), 'client_port' => $connection->getRemotePort(), 'gateway_port' => $this->_gatewayPort, 'connection_id' => $connection->id, 'flag' => 0, ); // 连接的 session $connection->session = ''; // 该连接的心跳参数 $connection->pingNotResponseCount = -1; // 该链接发送缓冲区大小 $connection->maxSendBufferSize = $this->sendToClientBufferSize; // 保存客户端连接 connection 对象 $this->_clientConnections[$connection->id] = $connection; // 如果用户有自定义 onConnect 回调,则执行 if ($this->_onConnect) { call_user_func($this->_onConnect, $connection); if (isset($connection->onWebSocketConnect)) { $connection->_onWebSocketConnect = $connection->onWebSocketConnect; } } if ($connection->protocol === '\Workerman\Protocols\Websocket' || $connection->protocol === 'Workerman\Protocols\Websocket') { $connection->onWebSocketConnect = array($this, 'onWebsocketConnect'); } $this->sendToWorker(GatewayProtocol::CMD_ON_CONNECT, $connection); }
当客户端连接上来时,初始化一些客户端的数据 包括全局唯一的client_id、初始化session等 @param TcpConnection $connection
onClientConnect
php
walkor/GatewayWorker
src/Gateway.php
https://github.com/walkor/GatewayWorker/blob/master/src/Gateway.php
MIT
public function onWorkerConnect($connection) { $connection->maxSendBufferSize = $this->sendToWorkerBufferSize; $connection->authorized = !$this->secretKey; }
当 worker 通过内部通讯端口连接到 gateway 时 @param TcpConnection $connection
onWorkerConnect
php
walkor/GatewayWorker
src/Gateway.php
https://github.com/walkor/GatewayWorker/blob/master/src/Gateway.php
MIT
public static function getAllClientInfo($group = '') { echo "Warning: Gateway::getAllClientInfo is deprecated and will be removed in a future, please use Gateway::getAllClientSessions instead."; return static::getAllClientSessions($group); }
获取所有在线用户的session,client_id为 key(弃用,请用getAllClientSessions代替) @param string $group @return array
getAllClientInfo
php
walkor/GatewayWorker
src/Lib/Gateway.php
https://github.com/walkor/GatewayWorker/blob/master/src/Lib/Gateway.php
MIT
public static function getClientInfoByGroup($group) { echo "Warning: Gateway::getClientInfoByGroup is deprecated and will be removed in a future, please use Gateway::getClientSessionsByGroup instead."; return static::getAllClientSessions($group); }
获取某个组的连接信息(弃用,请用getClientSessionsByGroup代替) @param string $group @return array
getClientInfoByGroup
php
walkor/GatewayWorker
src/Lib/Gateway.php
https://github.com/walkor/GatewayWorker/blob/master/src/Lib/Gateway.php
MIT
public static function getAllClientCount() { return static::getAllClientIdCount(); }
获取所有在线client_id数(getAllClientIdCount的别名) @return int
getAllClientCount
php
walkor/GatewayWorker
src/Lib/Gateway.php
https://github.com/walkor/GatewayWorker/blob/master/src/Lib/Gateway.php
MIT
public function newInstanceArgs(string $class, array $params) { return $this->container->getInstanceWithArgs($class, $params); }
Build an object graph with give constructor parameters @param string $class class name @param array<int, mixed> $params construct parameters @return mixed
newInstanceArgs
php
ray-di/Ray.Di
src/di/Grapher.php
https://github.com/ray-di/Ray.Di/blob/master/src/di/Grapher.php
MIT
public function getInstanceWithArgs(string $interface, array $params) { $index = $interface . '-'; if (! isset($this->container[$index])) { throw $this->unbound($index); } $dependency = $this->container[$index]; if (! $dependency instanceof Dependency) { throw new BadMethodCallException($interface); } /** @psalm-suppress ArgumentTypeCoercion */ return $dependency->injectWithArgs($this, $params); }
Return dependency injected instance @param array<int, mixed> $params @return mixed @throws Unbound
getInstanceWithArgs
php
ray-di/Ray.Di
src/di/Container.php
https://github.com/ray-di/Ray.Di/blob/master/src/di/Container.php
MIT
public function getDependency(string $index) { if (! isset($this->container[$index])) { throw $this->unbound($index); } return $this->container[$index]->inject($this); }
Return dependency injected instance @return mixed @throws Unbound
getDependency
php
ray-di/Ray.Di
src/di/Container.php
https://github.com/ray-di/Ray.Di/blob/master/src/di/Container.php
MIT
public function invoke(MethodInvocation $invocation) { $method = $invocation->getMethod(); $assisted = $method->getAnnotation(Assisted::class); $parameters = $method->getParameters(); $arguments = $invocation->getArguments()->getArrayCopy(); if ($assisted instanceof Assisted) { $this->methodInvocationProvider->set($invocation); $arguments = $this->injectAssistedParameters($method, $assisted, $parameters, $arguments); } $invocation->getArguments()->exchangeArray($arguments); return $invocation->proceed(); }
Intercepts any method and injects instances of the missing arguments when they are type hinted @return mixed
invoke
php
ray-di/Ray.Di
src/di/AssistedInterceptor.php
https://github.com/ray-di/Ray.Di/blob/master/src/di/AssistedInterceptor.php
MIT
public function setFinder(FinderInterface $finder) { $this->finder = $finder; }
Setter Injection with no Inject annotation
setFinder
php
ray-di/Ray.Di
demo-php8/05b-constructor-binding-setter-injection.php
https://github.com/ray-di/Ray.Di/blob/master/demo-php8/05b-constructor-binding-setter-injection.php
MIT
public function __construct(FakeEngineInterface $engine) { $this->engine = $engine; }
Inject annotation at constructor is just for human, not mandatory.
__construct
php
ray-di/Ray.Di
tests/di/Fake/FakeCar.php
https://github.com/ray-di/Ray.Di/blob/master/tests/di/Fake/FakeCar.php
MIT
private function getRawValueForKey($key) { $qb = $this->conn->createQueryBuilder() ->select($this->valueColumn) ->from(self::TABLE) ->where($this->keyColumn . ' = :key') ->setParameter('key', $this->generateKey($key)) ; // TODO just call `executeQuery()` as soon as DBAL >= 2.13.1 is required $result = \method_exists($qb, 'executeQuery') ? $qb->executeQuery() : $qb->execute(); // TODO remove as soon as Doctrine DBAL >= 3.0 is required if (!\method_exists($result, 'fetchOne')) { return $result->fetchColumn(); } return $result->fetchOne(); }
Gets stored raw data for the given key. @param string $key @return string|false Raw data or false, if no data is available.
getRawValueForKey
php
craue/CraueFormFlowBundle
Storage/DoctrineStorage.php
https://github.com/craue/CraueFormFlowBundle/blob/master/Storage/DoctrineStorage.php
MIT
private function proceedToStep($stepNumber) { static::$client->followRedirects(); $crawler = static::$client->request('GET', $this->url('_FormFlow_createTopic')); if ($stepNumber < 2) { return $crawler; } // bug report -> step 2 $form = $crawler->selectButton('next')->form(); $crawler = static::$client->submit($form, [ 'createTopic[title]' => 'blah', 'createTopic[category]' => 'BUG_REPORT', ]); if ($stepNumber < 3) { return $crawler; } // comment -> step 3 $form = $crawler->selectButton('next')->form(); $crawler = static::$client->submit($form, [ 'createTopic[comment]' => 'my comment', ]); if ($stepNumber < 4) { return $crawler; } // bug details -> step 4 $form = $crawler->selectButton('next')->form(); $crawler = static::$client->submit($form, [ 'createTopic[details]' => 'blah blah', ]); return $crawler; }
Processes through the flow up to the given step by filling out the forms with some valid data. @param int $stepNumber The targeted step number. @return Crawler
proceedToStep
php
craue/CraueFormFlowBundle
Tests/CreateTopicFlowTest.php
https://github.com/craue/CraueFormFlowBundle/blob/master/Tests/CreateTopicFlowTest.php
MIT
private function ensureStepNumberRange($stepNumber) { return max(min($stepNumber, $this->getStepCount()), 1); }
Ensures that the step number is within the range of defined steps to avoid a possible OutOfBoundsException. @param int $stepNumber @return int
ensureStepNumberRange
php
craue/CraueFormFlowBundle
Form/FormFlow.php
https://github.com/craue/CraueFormFlowBundle/blob/master/Form/FormFlow.php
MIT
public function invalidateStepData($fromStepNumber) { $stepData = $this->retrieveStepData(); for ($step = $fromStepNumber, $stepCount = $this->getStepCount(); $step < $stepCount; ++$step) { unset($stepData[$step]); } $this->saveStepData($stepData); }
Invalidates data for steps >= $fromStepNumber. @param int $fromStepNumber
invalidateStepData
php
craue/CraueFormFlowBundle
Form/FormFlow.php
https://github.com/craue/CraueFormFlowBundle/blob/master/Form/FormFlow.php
MIT
protected function createFormForStep($stepNumber, array $options = []) { $formType = $this->getStep($stepNumber)->getFormType(); $options = $this->getFormOptions($stepNumber, $options); if ($formType === null) { $formType = FormType::class; } return $this->formFactory->create($formType, $this->formData, $options); }
Creates the form for the given step number. @param int $stepNumber @param array $options @return FormInterface
createFormForStep
php
craue/CraueFormFlowBundle
Form/FormFlow.php
https://github.com/craue/CraueFormFlowBundle/blob/master/Form/FormFlow.php
MIT
protected function loadStepsConfig() { return []; }
Defines the configuration for all steps of this flow. @return array
loadStepsConfig
php
craue/CraueFormFlowBundle
Form/FormFlow.php
https://github.com/craue/CraueFormFlowBundle/blob/master/Form/FormFlow.php
MIT
public static function removeTempFiles() { foreach (self::$tempFiles as $tempFile) { if (is_file($tempFile)) { @unlink($tempFile); } } self::$tempFiles = []; }
Removes all previously added files from disk.
removeTempFiles
php
craue/CraueFormFlowBundle
Util/TempFileUtil.php
https://github.com/craue/CraueFormFlowBundle/blob/master/Util/TempFileUtil.php
MIT
public function addRouteParameters(array $parameters, FormFlow $flow, $stepNumber = null) { if ($stepNumber === null) { $stepNumber = $flow->getCurrentStepNumber(); } $parameters[$flow->getDynamicStepNavigationInstanceParameter()] = $flow->getInstanceId(); $parameters[$flow->getDynamicStepNavigationStepParameter()] = $stepNumber; return $parameters; }
Adds route parameters for dynamic step navigation. @param array $parameters Current route parameters. @param FormFlow $flow The flow involved. @param int|null $stepNumber Number of the step the link will be generated for. If <code>null</code>, the <code>$flow</code>'s current step number will be used. @return array Route parameters plus instance and step parameter.
addRouteParameters
php
craue/CraueFormFlowBundle
Util/FormFlowUtil.php
https://github.com/craue/CraueFormFlowBundle/blob/master/Util/FormFlowUtil.php
MIT
public function removeRouteParameters(array $parameters, FormFlow $flow) { unset($parameters[$flow->getDynamicStepNavigationInstanceParameter()]); unset($parameters[$flow->getDynamicStepNavigationStepParameter()]); return $parameters; }
Removes route parameters for dynamic step navigation. @param array $parameters Current route parameters. @param FormFlow $flow The flow involved. @return array Route parameters without instance and step parameter.
removeRouteParameters
php
craue/CraueFormFlowBundle
Util/FormFlowUtil.php
https://github.com/craue/CraueFormFlowBundle/blob/master/Util/FormFlowUtil.php
MIT
public function addDynamicStepNavigationParameters(array $parameters, FormFlow $flow, $stepNumber) { return $this->formFlowUtil->addRouteParameters($parameters, $flow, $stepNumber); }
Adds route parameters for dynamic step navigation. @param array $parameters Current route parameters. @param FormFlow $flow The flow involved. @param int $stepNumber Number of the step the link will be generated for. @return array Route parameters plus instance and step parameter.
addDynamicStepNavigationParameters
php
craue/CraueFormFlowBundle
Twig/Extension/FormFlowExtension.php
https://github.com/craue/CraueFormFlowBundle/blob/master/Twig/Extension/FormFlowExtension.php
MIT
public function __construct(private readonly TransporterContract $transporter) { // .. }
Creates a Client instance with the given API token.
__construct
php
openai-php/client
src/Client.php
https://github.com/openai-php/client/blob/master/src/Client.php
MIT
public function __construct( private readonly ClientInterface $client, private readonly BaseUri $baseUri, private readonly Headers $headers, private readonly QueryParams $queryParams, private readonly Closure $streamHandler, ) { // .. }
Creates a new Http Transporter instance.
__construct
php
openai-php/client
src/Transporters/HttpTransporter.php
https://github.com/openai-php/client/blob/master/src/Transporters/HttpTransporter.php
MIT
public function __construct( private readonly string $responseClass, private readonly ResponseInterface $response, ) { // }
Creates a new Stream Response instance. @param class-string<TResponse> $responseClass
__construct
php
openai-php/client
src/Responses/StreamResponse.php
https://github.com/openai-php/client/blob/master/src/Responses/StreamResponse.php
MIT
public function __construct(ClientExceptionInterface $exception) { parent::__construct($exception->getMessage(), 0, $exception); }
Creates a new Exception instance.
__construct
php
openai-php/client
src/Exceptions/TransporterException.php
https://github.com/openai-php/client/blob/master/src/Exceptions/TransporterException.php
MIT
public function __construct(private readonly array $contents, private readonly int $statusCode) { $message = ($contents['message'] ?: (string) $this->contents['code']) ?: 'Unknown error'; if (is_array($message)) { $message = implode(PHP_EOL, $message); } parent::__construct($message); }
Creates a new Exception instance. @param array{message: string|array<int, string>, type: ?string, code: string|int|null} $contents
__construct
php
openai-php/client
src/Exceptions/ErrorException.php
https://github.com/openai-php/client/blob/master/src/Exceptions/ErrorException.php
MIT
private function __construct(private readonly string $uri) { // .. }
Creates a new ResourceUri value object.
__construct
php
openai-php/client
src/ValueObjects/ResourceUri.php
https://github.com/openai-php/client/blob/master/src/ValueObjects/ResourceUri.php
MIT
private function __construct(public readonly string $apiKey) { // .. }
Creates a new API token value object.
__construct
php
openai-php/client
src/ValueObjects/ApiKey.php
https://github.com/openai-php/client/blob/master/src/ValueObjects/ApiKey.php
MIT
private function __construct(private readonly string $baseUri) { // .. }
Creates a new Base URI value object.
__construct
php
openai-php/client
src/ValueObjects/Transporter/BaseUri.php
https://github.com/openai-php/client/blob/master/src/ValueObjects/Transporter/BaseUri.php
MIT
private function __construct( private readonly array|string $data, private readonly MetaInformation $meta ) { // .. }
Creates a new Response value object. @param TData $data
__construct
php
openai-php/client
src/ValueObjects/Transporter/Response.php
https://github.com/openai-php/client/blob/master/src/ValueObjects/Transporter/Response.php
MIT