id
int32
0
241k
repo
stringlengths
6
63
path
stringlengths
5
140
func_name
stringlengths
3
151
original_string
stringlengths
84
13k
language
stringclasses
1 value
code
stringlengths
84
13k
code_tokens
list
docstring
stringlengths
3
47.2k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
91
247
188,600
mailjet/mailjetBundle
src/Manager/CampaignDraftManager.php
CampaignDraftManager.sendCampaign
public function sendCampaign($CampaignId) { $response = $this->mailjet->post(Resources::$CampaigndraftSend, ['id' => $CampaignId]); if (!$response->success()) { $this->throwError("CampaignDraftManager:sendCampaign failed", $response); } return...
php
public function sendCampaign($CampaignId) { $response = $this->mailjet->post(Resources::$CampaigndraftSend, ['id' => $CampaignId]); if (!$response->success()) { $this->throwError("CampaignDraftManager:sendCampaign failed", $response); } return...
[ "public", "function", "sendCampaign", "(", "$", "CampaignId", ")", "{", "$", "response", "=", "$", "this", "->", "mailjet", "->", "post", "(", "Resources", "::", "$", "CampaigndraftSend", ",", "[", "'id'", "=>", "$", "CampaignId", "]", ")", ";", "if", ...
Send the campaign immediately @param string Campaign $id @return array
[ "Send", "the", "campaign", "immediately" ]
b733f4c28cf53ab7ee59f62764736d263881d739
https://github.com/mailjet/mailjetBundle/blob/b733f4c28cf53ab7ee59f62764736d263881d739/src/Manager/CampaignDraftManager.php#L201-L211
188,601
mailjet/mailjetBundle
src/Manager/CampaignDraftManager.php
CampaignDraftManager.getCampaignStatus
public function getCampaignStatus($CampaignId) { $response = $this->mailjet->get(Resources::$CampaigndraftStatus, ['id' => $CampaignId]); if (!$response->success()) { $this->throwError("CampaignDraftManager:getCampaignStatus failed", $response); } ...
php
public function getCampaignStatus($CampaignId) { $response = $this->mailjet->get(Resources::$CampaigndraftStatus, ['id' => $CampaignId]); if (!$response->success()) { $this->throwError("CampaignDraftManager:getCampaignStatus failed", $response); } ...
[ "public", "function", "getCampaignStatus", "(", "$", "CampaignId", ")", "{", "$", "response", "=", "$", "this", "->", "mailjet", "->", "get", "(", "Resources", "::", "$", "CampaigndraftStatus", ",", "[", "'id'", "=>", "$", "CampaignId", "]", ")", ";", "i...
Return the status of a CampaignDraft @param string Campaign $id @return array
[ "Return", "the", "status", "of", "a", "CampaignDraft" ]
b733f4c28cf53ab7ee59f62764736d263881d739
https://github.com/mailjet/mailjetBundle/blob/b733f4c28cf53ab7ee59f62764736d263881d739/src/Manager/CampaignDraftManager.php#L218-L228
188,602
mailjet/mailjetBundle
src/Manager/TemplateManager.php
TemplateManager.create
public function create(Template $Template) { $response = $this->mailjet->post(Resources::$Template, ['body' => $Template->format()]); if (!$response->success()) { $this->throwError("TemplateManager:create() failed", $response); } return $response->getData(); ...
php
public function create(Template $Template) { $response = $this->mailjet->post(Resources::$Template, ['body' => $Template->format()]); if (!$response->success()) { $this->throwError("TemplateManager:create() failed", $response); } return $response->getData(); ...
[ "public", "function", "create", "(", "Template", "$", "Template", ")", "{", "$", "response", "=", "$", "this", "->", "mailjet", "->", "post", "(", "Resources", "::", "$", "Template", ",", "[", "'body'", "=>", "$", "Template", "->", "format", "(", ")", ...
Add a new template resource with a POST request. @param Template $Template
[ "Add", "a", "new", "template", "resource", "with", "a", "POST", "request", "." ]
b733f4c28cf53ab7ee59f62764736d263881d739
https://github.com/mailjet/mailjetBundle/blob/b733f4c28cf53ab7ee59f62764736d263881d739/src/Manager/TemplateManager.php#L64-L73
188,603
mailjet/mailjetBundle
src/Command/SyncUserCommand.php
SyncUserCommand.getProvider
private function getProvider($providerServiceKey) { try { $provider = $this->getContainer()->get($providerServiceKey); } catch (ServiceNotFoundException $e) { throw new \InvalidArgumentException(sprintf('Provider "%s" should be defined as a service.', $providerServiceKey), $e...
php
private function getProvider($providerServiceKey) { try { $provider = $this->getContainer()->get($providerServiceKey); } catch (ServiceNotFoundException $e) { throw new \InvalidArgumentException(sprintf('Provider "%s" should be defined as a service.', $providerServiceKey), $e...
[ "private", "function", "getProvider", "(", "$", "providerServiceKey", ")", "{", "try", "{", "$", "provider", "=", "$", "this", "->", "getContainer", "(", ")", "->", "get", "(", "$", "providerServiceKey", ")", ";", "}", "catch", "(", "ServiceNotFoundException...
Get contact provider @param string $providerServiceKey @return ProviderInterface $provider
[ "Get", "contact", "provider" ]
b733f4c28cf53ab7ee59f62764736d263881d739
https://github.com/mailjet/mailjetBundle/blob/b733f4c28cf53ab7ee59f62764736d263881d739/src/Command/SyncUserCommand.php#L102-L113
188,604
mailjet/mailjetBundle
src/Command/SyncUserCommand.php
SyncUserCommand.refreshBatchesResult
private function refreshBatchesResult($listId, $batchesResult, &$batchesError) { $refreshedBatchsResults = []; foreach ($batchesResult as $key => $batch) { $jobId = $batch['JobID']; $batch = $this->synchronizer->getJob($listId, $jobId); // We need to array merge b...
php
private function refreshBatchesResult($listId, $batchesResult, &$batchesError) { $refreshedBatchsResults = []; foreach ($batchesResult as $key => $batch) { $jobId = $batch['JobID']; $batch = $this->synchronizer->getJob($listId, $jobId); // We need to array merge b...
[ "private", "function", "refreshBatchesResult", "(", "$", "listId", ",", "$", "batchesResult", ",", "&", "$", "batchesError", ")", "{", "$", "refreshedBatchsResults", "=", "[", "]", ";", "foreach", "(", "$", "batchesResult", "as", "$", "key", "=>", "$", "ba...
Refresh all batch from Mailjet API @param string $listId @param array $batchesResult @param &array $batchesError @return array
[ "Refresh", "all", "batch", "from", "Mailjet", "API" ]
b733f4c28cf53ab7ee59f62764736d263881d739
https://github.com/mailjet/mailjetBundle/blob/b733f4c28cf53ab7ee59f62764736d263881d739/src/Command/SyncUserCommand.php#L122-L136
188,605
mailjet/mailjetBundle
src/Command/SyncUserCommand.php
SyncUserCommand.batchesFinished
private function batchesFinished($batchesResult) { $allfinished = true; foreach ($batchesResult as $key => $batch) { if ($batch['Status'] != 'Completed') { $allfinished = false; } } return $allfinished; }
php
private function batchesFinished($batchesResult) { $allfinished = true; foreach ($batchesResult as $key => $batch) { if ($batch['Status'] != 'Completed') { $allfinished = false; } } return $allfinished; }
[ "private", "function", "batchesFinished", "(", "$", "batchesResult", ")", "{", "$", "allfinished", "=", "true", ";", "foreach", "(", "$", "batchesResult", "as", "$", "key", "=>", "$", "batch", ")", "{", "if", "(", "$", "batch", "[", "'Status'", "]", "!...
Test if all batches are finished @param array $batchesResult @return bool
[ "Test", "if", "all", "batches", "are", "finished" ]
b733f4c28cf53ab7ee59f62764736d263881d739
https://github.com/mailjet/mailjetBundle/blob/b733f4c28cf53ab7ee59f62764736d263881d739/src/Command/SyncUserCommand.php#L143-L152
188,606
mailjet/mailjetBundle
src/Command/SyncUserCommand.php
SyncUserCommand.displayBatchInfo
private function displayBatchInfo($batch) { if ($batch['Status'] == 'Completed') { return sprintf('batch %s is Completed, %d operations %s', $batch['JobID'], $batch['Count'], $batch['Error']); } else { return sprintf('batch %s, current status %s, %d operations %s', $batch['Jo...
php
private function displayBatchInfo($batch) { if ($batch['Status'] == 'Completed') { return sprintf('batch %s is Completed, %d operations %s', $batch['JobID'], $batch['Count'], $batch['Error']); } else { return sprintf('batch %s, current status %s, %d operations %s', $batch['Jo...
[ "private", "function", "displayBatchInfo", "(", "$", "batch", ")", "{", "if", "(", "$", "batch", "[", "'Status'", "]", "==", "'Completed'", ")", "{", "return", "sprintf", "(", "'batch %s is Completed, %d operations %s'", ",", "$", "batch", "[", "'JobID'", "]",...
Pretty display of batch info @param array $batch @return string
[ "Pretty", "display", "of", "batch", "info" ]
b733f4c28cf53ab7ee59f62764736d263881d739
https://github.com/mailjet/mailjetBundle/blob/b733f4c28cf53ab7ee59f62764736d263881d739/src/Command/SyncUserCommand.php#L158-L165
188,607
mailjet/mailjetBundle
src/Command/SyncUserCommand.php
SyncUserCommand.displayBatchesErrorFile
private function displayBatchesErrorFile($batchesError) { $output = []; foreach ($batchesError as $key => $batch) { $errors = $this->synchronizer->getJobJsonError($batch['JobID']); array_push($output, '<error><pre>'.print_r($errors).'</pre></error>'); } retur...
php
private function displayBatchesErrorFile($batchesError) { $output = []; foreach ($batchesError as $key => $batch) { $errors = $this->synchronizer->getJobJsonError($batch['JobID']); array_push($output, '<error><pre>'.print_r($errors).'</pre></error>'); } retur...
[ "private", "function", "displayBatchesErrorFile", "(", "$", "batchesError", ")", "{", "$", "output", "=", "[", "]", ";", "foreach", "(", "$", "batchesError", "as", "$", "key", "=>", "$", "batch", ")", "{", "$", "errors", "=", "$", "this", "->", "synchr...
Print Batches Errors @param array $batchesError @return array
[ "Print", "Batches", "Errors" ]
b733f4c28cf53ab7ee59f62764736d263881d739
https://github.com/mailjet/mailjetBundle/blob/b733f4c28cf53ab7ee59f62764736d263881d739/src/Command/SyncUserCommand.php#L172-L181
188,608
mailjet/mailjetBundle
src/Client/MailjetClient.php
MailjetClient.delete
public function delete($resource, array $args = [], array $options = []) { $response = parent::delete($resource, $args, $options); $this->calls[] = [ 'method' => 'DELETE', 'resource' => $resource, 'args' => $args, 'options' => $options, 'su...
php
public function delete($resource, array $args = [], array $options = []) { $response = parent::delete($resource, $args, $options); $this->calls[] = [ 'method' => 'DELETE', 'resource' => $resource, 'args' => $args, 'options' => $options, 'su...
[ "public", "function", "delete", "(", "$", "resource", ",", "array", "$", "args", "=", "[", "]", ",", "array", "$", "options", "=", "[", "]", ")", "{", "$", "response", "=", "parent", "::", "delete", "(", "$", "resource", ",", "$", "args", ",", "$...
Trigger a GET request @param array $resource Mailjet Resource/Action pair @param array $args Request arguments @param array $options @return Response
[ "Trigger", "a", "GET", "request" ]
b733f4c28cf53ab7ee59f62764736d263881d739
https://github.com/mailjet/mailjetBundle/blob/b733f4c28cf53ab7ee59f62764736d263881d739/src/Client/MailjetClient.php#L85-L97
188,609
mailjet/mailjetBundle
src/Manager/ContactsListManager.php
ContactsListManager.create
public function create($listId, Contact $contact, $action=Contact::ACTION_ADDFORCE) { $contact->setAction($action); $response = $this->_exec($listId, $contact); if (!$response->success()) { $this->throwError("ContactsListManager:create() failed", $response); } re...
php
public function create($listId, Contact $contact, $action=Contact::ACTION_ADDFORCE) { $contact->setAction($action); $response = $this->_exec($listId, $contact); if (!$response->success()) { $this->throwError("ContactsListManager:create() failed", $response); } re...
[ "public", "function", "create", "(", "$", "listId", ",", "Contact", "$", "contact", ",", "$", "action", "=", "Contact", "::", "ACTION_ADDFORCE", ")", "{", "$", "contact", "->", "setAction", "(", "$", "action", ")", ";", "$", "response", "=", "$", "this...
create a new fresh Contact to listId @param string $listId @param Contact $contact @param string $action
[ "create", "a", "new", "fresh", "Contact", "to", "listId" ]
b733f4c28cf53ab7ee59f62764736d263881d739
https://github.com/mailjet/mailjetBundle/blob/b733f4c28cf53ab7ee59f62764736d263881d739/src/Manager/ContactsListManager.php#L45-L54
188,610
mailjet/mailjetBundle
src/Manager/ContactsListManager.php
ContactsListManager.update
public function update($listId, Contact $contact, $action=Contact::ACTION_ADDNOFORCE) { $contact->setAction($action); $response = $this->_exec($listId, $contact); if (!$response->success()) { $this->throwError("ContactsListManager:update() failed", $response); } ...
php
public function update($listId, Contact $contact, $action=Contact::ACTION_ADDNOFORCE) { $contact->setAction($action); $response = $this->_exec($listId, $contact); if (!$response->success()) { $this->throwError("ContactsListManager:update() failed", $response); } ...
[ "public", "function", "update", "(", "$", "listId", ",", "Contact", "$", "contact", ",", "$", "action", "=", "Contact", "::", "ACTION_ADDNOFORCE", ")", "{", "$", "contact", "->", "setAction", "(", "$", "action", ")", ";", "$", "response", "=", "$", "th...
update a Contact to listId @param string $listId @param Contact $contact @param string $action
[ "update", "a", "Contact", "to", "listId" ]
b733f4c28cf53ab7ee59f62764736d263881d739
https://github.com/mailjet/mailjetBundle/blob/b733f4c28cf53ab7ee59f62764736d263881d739/src/Manager/ContactsListManager.php#L62-L71
188,611
mailjet/mailjetBundle
src/Manager/ContactsListManager.php
ContactsListManager.unsubscribe
public function unsubscribe($listId, Contact $contact) { $contact->setAction(Contact::ACTION_UNSUB); $response = $this->_exec($listId, $contact); if (!$response->success()) { $this->throwError("ContactsListManager:unsub() failed", $response); } return $response->...
php
public function unsubscribe($listId, Contact $contact) { $contact->setAction(Contact::ACTION_UNSUB); $response = $this->_exec($listId, $contact); if (!$response->success()) { $this->throwError("ContactsListManager:unsub() failed", $response); } return $response->...
[ "public", "function", "unsubscribe", "(", "$", "listId", ",", "Contact", "$", "contact", ")", "{", "$", "contact", "->", "setAction", "(", "Contact", "::", "ACTION_UNSUB", ")", ";", "$", "response", "=", "$", "this", "->", "_exec", "(", "$", "listId", ...
unsubscribe a Contact from listId @param string $listId @param Contact $contact
[ "unsubscribe", "a", "Contact", "from", "listId" ]
b733f4c28cf53ab7ee59f62764736d263881d739
https://github.com/mailjet/mailjetBundle/blob/b733f4c28cf53ab7ee59f62764736d263881d739/src/Manager/ContactsListManager.php#L99-L108
188,612
mailjet/mailjetBundle
src/Manager/ContactsListManager.php
ContactsListManager.changeEmail
public function changeEmail($listId, Contact $contact, $oldEmail) { // get old contact properties $response = $this->mailjet->get(Resources::$Contactdata, ['id' => $oldEmail]); if (!$response->success()) { $this->throwError("ContactsListManager:changeEmail() failed", $response); ...
php
public function changeEmail($listId, Contact $contact, $oldEmail) { // get old contact properties $response = $this->mailjet->get(Resources::$Contactdata, ['id' => $oldEmail]); if (!$response->success()) { $this->throwError("ContactsListManager:changeEmail() failed", $response); ...
[ "public", "function", "changeEmail", "(", "$", "listId", ",", "Contact", "$", "contact", ",", "$", "oldEmail", ")", "{", "// get old contact properties", "$", "response", "=", "$", "this", "->", "mailjet", "->", "get", "(", "Resources", "::", "$", "Contactda...
Change email a Contact @param string $listId @param Contact $contact @param string $oldEmail
[ "Change", "email", "a", "Contact" ]
b733f4c28cf53ab7ee59f62764736d263881d739
https://github.com/mailjet/mailjetBundle/blob/b733f4c28cf53ab7ee59f62764736d263881d739/src/Manager/ContactsListManager.php#L132-L162
188,613
brick/db
src/Bulk/BulkOperator.php
BulkOperator.queue
public function queue(...$values) : bool { $count = count($values); if ($count !== $this->numFields) { throw new \InvalidArgumentException(sprintf( 'The number of values (%u) does not match the field count (%u).', $count, $this->numFields ...
php
public function queue(...$values) : bool { $count = count($values); if ($count !== $this->numFields) { throw new \InvalidArgumentException(sprintf( 'The number of values (%u) does not match the field count (%u).', $count, $this->numFields ...
[ "public", "function", "queue", "(", "...", "$", "values", ")", ":", "bool", "{", "$", "count", "=", "count", "(", "$", "values", ")", ";", "if", "(", "$", "count", "!==", "$", "this", "->", "numFields", ")", "{", "throw", "new", "\\", "InvalidArgum...
Queues an operation. @param mixed ...$values The values to process. @return bool Whether a batch has been synchronized with the database. This can be used to display progress feedback. @throws \InvalidArgumentException If the number of values does not match the field count.
[ "Queues", "an", "operation", "." ]
610a100300a55c030c85aea413a2c9a442b410af
https://github.com/brick/db/blob/610a100300a55c030c85aea413a2c9a442b410af/src/Bulk/BulkOperator.php#L125-L155
188,614
brick/db
src/Bulk/BulkOperator.php
BulkOperator.flush
public function flush() : void { if ($this->bufferSize === 0) { return; } $query = $this->getQuery($this->bufferSize); $statement = $this->pdo->prepare($query); $statement->execute($this->buffer); $this->affectedRows += $statement->rowCount(); $t...
php
public function flush() : void { if ($this->bufferSize === 0) { return; } $query = $this->getQuery($this->bufferSize); $statement = $this->pdo->prepare($query); $statement->execute($this->buffer); $this->affectedRows += $statement->rowCount(); $t...
[ "public", "function", "flush", "(", ")", ":", "void", "{", "if", "(", "$", "this", "->", "bufferSize", "===", "0", ")", "{", "return", ";", "}", "$", "query", "=", "$", "this", "->", "getQuery", "(", "$", "this", "->", "bufferSize", ")", ";", "$"...
Flushes the pending data to the database. This is to be called once after the last queue() has been processed, to force flushing the remaining queued operations to the database table. Do *not* forget to call this method after all the operations have been queued, or it could result in data loss. @return void
[ "Flushes", "the", "pending", "data", "to", "the", "database", "." ]
610a100300a55c030c85aea413a2c9a442b410af
https://github.com/brick/db/blob/610a100300a55c030c85aea413a2c9a442b410af/src/Bulk/BulkOperator.php#L168-L181
188,615
brick/db
src/Bulk/BulkOperator.php
BulkOperator.reset
public function reset() : void { $this->buffer = []; $this->bufferSize = 0; $this->affectedRows = 0; $this->totalOperations = 0; }
php
public function reset() : void { $this->buffer = []; $this->bufferSize = 0; $this->affectedRows = 0; $this->totalOperations = 0; }
[ "public", "function", "reset", "(", ")", ":", "void", "{", "$", "this", "->", "buffer", "=", "[", "]", ";", "$", "this", "->", "bufferSize", "=", "0", ";", "$", "this", "->", "affectedRows", "=", "0", ";", "$", "this", "->", "totalOperations", "=",...
Resets the bulk operator. This removes any pending operations, and resets the affected row count. @return void
[ "Resets", "the", "bulk", "operator", "." ]
610a100300a55c030c85aea413a2c9a442b410af
https://github.com/brick/db/blob/610a100300a55c030c85aea413a2c9a442b410af/src/Bulk/BulkOperator.php#L190-L196
188,616
mailjet/mailjetBundle
src/Manager/ContactMetadataManager.php
ContactMetadataManager.create
public function create(ContactMetadata $contactMetadata) { $response = $this->mailjet->post(Resources::$Contactmetadata, ['body' => $contactMetadata->format()]); if (!$response->success()) { $this->throwError("ContactMetadataManager:create() failed", $response); } return...
php
public function create(ContactMetadata $contactMetadata) { $response = $this->mailjet->post(Resources::$Contactmetadata, ['body' => $contactMetadata->format()]); if (!$response->success()) { $this->throwError("ContactMetadataManager:create() failed", $response); } return...
[ "public", "function", "create", "(", "ContactMetadata", "$", "contactMetadata", ")", "{", "$", "response", "=", "$", "this", "->", "mailjet", "->", "post", "(", "Resources", "::", "$", "Contactmetadata", ",", "[", "'body'", "=>", "$", "contactMetadata", "->"...
create a new fresh ContactMetadata @param ContactMetadata $contactMetadata
[ "create", "a", "new", "fresh", "ContactMetadata" ]
b733f4c28cf53ab7ee59f62764736d263881d739
https://github.com/mailjet/mailjetBundle/blob/b733f4c28cf53ab7ee59f62764736d263881d739/src/Manager/ContactMetadataManager.php#L66-L74
188,617
mailjet/mailjetBundle
src/Manager/ContactMetadataManager.php
ContactMetadataManager.update
public function update($id, ContactMetadata $contactMetadata) { $response = $this->mailjet->put(Resources::$Contactmetadata, ['id' => $id,'body' => $contactMetadata->format()]); if (!$response->success()) { $this->throwError("ContactMetadataManager:update() failed", $response); }...
php
public function update($id, ContactMetadata $contactMetadata) { $response = $this->mailjet->put(Resources::$Contactmetadata, ['id' => $id,'body' => $contactMetadata->format()]); if (!$response->success()) { $this->throwError("ContactMetadataManager:update() failed", $response); }...
[ "public", "function", "update", "(", "$", "id", ",", "ContactMetadata", "$", "contactMetadata", ")", "{", "$", "response", "=", "$", "this", "->", "mailjet", "->", "put", "(", "Resources", "::", "$", "Contactmetadata", ",", "[", "'id'", "=>", "$", "id", ...
Update one ContactMetadata @param int $id @param ContactMetadata $contactMetadata
[ "Update", "one", "ContactMetadata" ]
b733f4c28cf53ab7ee59f62764736d263881d739
https://github.com/mailjet/mailjetBundle/blob/b733f4c28cf53ab7ee59f62764736d263881d739/src/Manager/ContactMetadataManager.php#L81-L89
188,618
mailjet/mailjetBundle
src/Synchronizer/ContactsListSynchronizer.php
ContactsListSynchronizer.synchronize
public function synchronize(ContactsList $contactsList) { // Remove diff Contacts $batchesResultRemove = $this->batchRemoveContact($contactsList); // Add Contacts $batchesResultAdd = $this->batchAddContact($contactsList); return array_merge($batchesResultRemove, $batchesRes...
php
public function synchronize(ContactsList $contactsList) { // Remove diff Contacts $batchesResultRemove = $this->batchRemoveContact($contactsList); // Add Contacts $batchesResultAdd = $this->batchAddContact($contactsList); return array_merge($batchesResultRemove, $batchesRes...
[ "public", "function", "synchronize", "(", "ContactsList", "$", "contactsList", ")", "{", "// Remove diff Contacts", "$", "batchesResultRemove", "=", "$", "this", "->", "batchRemoveContact", "(", "$", "contactsList", ")", ";", "// Add Contacts", "$", "batchesResultAdd"...
Multiple contacts can be uploaded asynchronously using that action. @param ContactsList $contactsList @return array
[ "Multiple", "contacts", "can", "be", "uploaded", "asynchronously", "using", "that", "action", "." ]
b733f4c28cf53ab7ee59f62764736d263881d739
https://github.com/mailjet/mailjetBundle/blob/b733f4c28cf53ab7ee59f62764736d263881d739/src/Synchronizer/ContactsListSynchronizer.php#L49-L58
188,619
mailjet/mailjetBundle
src/Synchronizer/ContactsListSynchronizer.php
ContactsListSynchronizer.getJob
public function getJob($listId, $jobId) { $response = $this->mailjet->get(Resources::$ContactslistManagemanycontacts, ['id' => $listId, 'actionid' => $jobId]); if (!$response->success()) { $this->throwError("ContactsListSynchronizer:getJob() failed", $response); } return...
php
public function getJob($listId, $jobId) { $response = $this->mailjet->get(Resources::$ContactslistManagemanycontacts, ['id' => $listId, 'actionid' => $jobId]); if (!$response->success()) { $this->throwError("ContactsListSynchronizer:getJob() failed", $response); } return...
[ "public", "function", "getJob", "(", "$", "listId", ",", "$", "jobId", ")", "{", "$", "response", "=", "$", "this", "->", "mailjet", "->", "get", "(", "Resources", "::", "$", "ContactslistManagemanycontacts", ",", "[", "'id'", "=>", "$", "listId", ",", ...
Get Job data @method getJob @param string $listId @param string $jobId @return array
[ "Get", "Job", "data" ]
b733f4c28cf53ab7ee59f62764736d263881d739
https://github.com/mailjet/mailjetBundle/blob/b733f4c28cf53ab7ee59f62764736d263881d739/src/Synchronizer/ContactsListSynchronizer.php#L67-L75
188,620
mailjet/mailjetBundle
src/Synchronizer/ContactsListSynchronizer.php
ContactsListSynchronizer.getJobJsonError
public function getJobJsonError($jobId) { $response = $this->mailjet->get(Resources::$BatchjobJsonerror, ['id' => $jobId]); if (!$response->success()) { $this->throwError("ContactsListSynchronizer:getJobJsonError() failed", $response); } return $response->getBody(); ...
php
public function getJobJsonError($jobId) { $response = $this->mailjet->get(Resources::$BatchjobJsonerror, ['id' => $jobId]); if (!$response->success()) { $this->throwError("ContactsListSynchronizer:getJobJsonError() failed", $response); } return $response->getBody(); ...
[ "public", "function", "getJobJsonError", "(", "$", "jobId", ")", "{", "$", "response", "=", "$", "this", "->", "mailjet", "->", "get", "(", "Resources", "::", "$", "BatchjobJsonerror", ",", "[", "'id'", "=>", "$", "jobId", "]", ")", ";", "if", "(", "...
Retrieve JsonError for a job @param string $jobId @return array
[ "Retrieve", "JsonError", "for", "a", "job" ]
b733f4c28cf53ab7ee59f62764736d263881d739
https://github.com/mailjet/mailjetBundle/blob/b733f4c28cf53ab7ee59f62764736d263881d739/src/Synchronizer/ContactsListSynchronizer.php#L82-L90
188,621
mailjet/mailjetBundle
src/Synchronizer/ContactsListSynchronizer.php
ContactsListSynchronizer.batchAddContact
private function batchAddContact(ContactsList $contactsList) { $contactsList->setAction(ContactsList::ACTION_ADDFORCE); return $this->manager->manageManyContactsList($contactsList); }
php
private function batchAddContact(ContactsList $contactsList) { $contactsList->setAction(ContactsList::ACTION_ADDFORCE); return $this->manager->manageManyContactsList($contactsList); }
[ "private", "function", "batchAddContact", "(", "ContactsList", "$", "contactsList", ")", "{", "$", "contactsList", "->", "setAction", "(", "ContactsList", "::", "ACTION_ADDFORCE", ")", ";", "return", "$", "this", "->", "manager", "->", "manageManyContactsList", "(...
Create batches to add Contacts to List @param ContactsList $contactsList @return array
[ "Create", "batches", "to", "add", "Contacts", "to", "List" ]
b733f4c28cf53ab7ee59f62764736d263881d739
https://github.com/mailjet/mailjetBundle/blob/b733f4c28cf53ab7ee59f62764736d263881d739/src/Synchronizer/ContactsListSynchronizer.php#L147-L151
188,622
mailjet/mailjetBundle
src/Manager/CampaignManager.php
CampaignManager.getAllCampaigns
public function getAllCampaigns(array $filters = null) { $response = $this->mailjet->get(Resources::$Campaign, ['filters' => $filters]); if (!$response->success()) { $this->throwError("CampaignDraftManager:getAllCampaigns() failed", $response); } return $response->getData();...
php
public function getAllCampaigns(array $filters = null) { $response = $this->mailjet->get(Resources::$Campaign, ['filters' => $filters]); if (!$response->success()) { $this->throwError("CampaignDraftManager:getAllCampaigns() failed", $response); } return $response->getData();...
[ "public", "function", "getAllCampaigns", "(", "array", "$", "filters", "=", "null", ")", "{", "$", "response", "=", "$", "this", "->", "mailjet", "->", "get", "(", "Resources", "::", "$", "Campaign", ",", "[", "'filters'", "=>", "$", "filters", "]", ")...
List campaigns resources available for this apikey @return array
[ "List", "campaigns", "resources", "available", "for", "this", "apikey" ]
b733f4c28cf53ab7ee59f62764736d263881d739
https://github.com/mailjet/mailjetBundle/blob/b733f4c28cf53ab7ee59f62764736d263881d739/src/Manager/CampaignManager.php#L31-L38
188,623
mailjet/mailjetBundle
src/Manager/CampaignManager.php
CampaignManager.findByCampaignId
public function findByCampaignId($CampaignId) { $response = $this->mailjet->get(Resources::$Campaign, ['id' => $CampaignId]); if (!$response->success()) { $this->throwError("CampaignManager:findByCampaignId() failed", $response); } return $response->getData(); }
php
public function findByCampaignId($CampaignId) { $response = $this->mailjet->get(Resources::$Campaign, ['id' => $CampaignId]); if (!$response->success()) { $this->throwError("CampaignManager:findByCampaignId() failed", $response); } return $response->getData(); }
[ "public", "function", "findByCampaignId", "(", "$", "CampaignId", ")", "{", "$", "response", "=", "$", "this", "->", "mailjet", "->", "get", "(", "Resources", "::", "$", "Campaign", ",", "[", "'id'", "=>", "$", "CampaignId", "]", ")", ";", "if", "(", ...
Access a given campaign resource @param string $CampaignId @return array
[ "Access", "a", "given", "campaign", "resource" ]
b733f4c28cf53ab7ee59f62764736d263881d739
https://github.com/mailjet/mailjetBundle/blob/b733f4c28cf53ab7ee59f62764736d263881d739/src/Manager/CampaignManager.php#L45-L52
188,624
mailjet/mailjetBundle
src/Manager/CampaignManager.php
CampaignManager.updateCampaign
public function updateCampaign($CampaignId, Campaign $campaign) { $response = $this->mailjet->put(Resources::$Campaign, ['id' => $CampaignId, 'body' => $campaign->format()]); if (!$response->success()) { $this->throwError("CampaignManager:updateCampaign() failed", $response); } ...
php
public function updateCampaign($CampaignId, Campaign $campaign) { $response = $this->mailjet->put(Resources::$Campaign, ['id' => $CampaignId, 'body' => $campaign->format()]); if (!$response->success()) { $this->throwError("CampaignManager:updateCampaign() failed", $response); } ...
[ "public", "function", "updateCampaign", "(", "$", "CampaignId", ",", "Campaign", "$", "campaign", ")", "{", "$", "response", "=", "$", "this", "->", "mailjet", "->", "put", "(", "Resources", "::", "$", "Campaign", ",", "[", "'id'", "=>", "$", "CampaignId...
Update one specific campaign resource with a PUT request, providing the campaign's ID value @param string $id @return array
[ "Update", "one", "specific", "campaign", "resource", "with", "a", "PUT", "request", "providing", "the", "campaign", "s", "ID", "value" ]
b733f4c28cf53ab7ee59f62764736d263881d739
https://github.com/mailjet/mailjetBundle/blob/b733f4c28cf53ab7ee59f62764736d263881d739/src/Manager/CampaignManager.php#L59-L66
188,625
webinarium/DataTablesBundle
src/DataTableResults.php
DataTableResults.jsonSerialize
public function jsonSerialize() { return [ 'draw' => (int) $this->draw, 'recordsTotal' => (int) $this->recordsTotal, 'recordsFiltered' => (int) $this->recordsFiltered, 'data' => $this->data, ]; }
php
public function jsonSerialize() { return [ 'draw' => (int) $this->draw, 'recordsTotal' => (int) $this->recordsTotal, 'recordsFiltered' => (int) $this->recordsFiltered, 'data' => $this->data, ]; }
[ "public", "function", "jsonSerialize", "(", ")", "{", "return", "[", "'draw'", "=>", "(", "int", ")", "$", "this", "->", "draw", ",", "'recordsTotal'", "=>", "(", "int", ")", "$", "this", "->", "recordsTotal", ",", "'recordsFiltered'", "=>", "(", "int", ...
Convert results into array as expected by DataTables plugin. @return array
[ "Convert", "results", "into", "array", "as", "expected", "by", "DataTables", "plugin", "." ]
3f6cc69865938258fca31c5dff396fa97b0cfcab
https://github.com/webinarium/DataTablesBundle/blob/3f6cc69865938258fca31c5dff396fa97b0cfcab/src/DataTableResults.php#L63-L71
188,626
webinarium/DataTablesBundle
src/DataTables.php
DataTables.addService
public function addService(DataTableHandlerInterface $service, string $id = null) { $service_id = $id ?? $service::ID; if ($service_id !== null) { $this->services[$service_id] = $service; } }
php
public function addService(DataTableHandlerInterface $service, string $id = null) { $service_id = $id ?? $service::ID; if ($service_id !== null) { $this->services[$service_id] = $service; } }
[ "public", "function", "addService", "(", "DataTableHandlerInterface", "$", "service", ",", "string", "$", "id", "=", "null", ")", "{", "$", "service_id", "=", "$", "id", "??", "$", "service", "::", "ID", ";", "if", "(", "$", "service_id", "!==", "null", ...
Registers specified DataTable handler. @param DataTableHandlerInterface $service Service of the DataTable handler. @param string $id DataTable ID.
[ "Registers", "specified", "DataTable", "handler", "." ]
3f6cc69865938258fca31c5dff396fa97b0cfcab
https://github.com/webinarium/DataTablesBundle/blob/3f6cc69865938258fca31c5dff396fa97b0cfcab/src/DataTables.php#L49-L56
188,627
lexik/LexikMailerBundle
Message/MessageFactory.php
MessageFactory.getEmail
public function getEmail($reference) { if (!isset($this->emails[$reference])) { $this->emails[$reference] = $this->em->getRepository($this->options['email_class'])->findOneByReference($reference); } $email = $this->emails[$reference]; if (!$email instanceof EmailInterfa...
php
public function getEmail($reference) { if (!isset($this->emails[$reference])) { $this->emails[$reference] = $this->em->getRepository($this->options['email_class'])->findOneByReference($reference); } $email = $this->emails[$reference]; if (!$email instanceof EmailInterfa...
[ "public", "function", "getEmail", "(", "$", "reference", ")", "{", "if", "(", "!", "isset", "(", "$", "this", "->", "emails", "[", "$", "reference", "]", ")", ")", "{", "$", "this", "->", "emails", "[", "$", "reference", "]", "=", "$", "this", "-...
Find an email from database @param string $reference @throws ReferenceNotFoundException @return EmailInterface|null
[ "Find", "an", "email", "from", "database" ]
f1a4ec71764ceb002657270314947964ab27e966
https://github.com/lexik/LexikMailerBundle/blob/f1a4ec71764ceb002657270314947964ab27e966/Message/MessageFactory.php#L100-L113
188,628
lexik/LexikMailerBundle
Message/MessageFactory.php
MessageFactory.get
public function get($reference, $to, array $parameters = array(), $locale = null) { try { $email = $this->getEmail($reference); return $this->generateMessage($email, $to, $parameters, $locale); } catch (ReferenceNotFoundException $e) { return $this->generateExcept...
php
public function get($reference, $to, array $parameters = array(), $locale = null) { try { $email = $this->getEmail($reference); return $this->generateMessage($email, $to, $parameters, $locale); } catch (ReferenceNotFoundException $e) { return $this->generateExcept...
[ "public", "function", "get", "(", "$", "reference", ",", "$", "to", ",", "array", "$", "parameters", "=", "array", "(", ")", ",", "$", "locale", "=", "null", ")", "{", "try", "{", "$", "email", "=", "$", "this", "->", "getEmail", "(", "$", "refer...
Find an email template and create a swift message. @param string $reference @param mixed $to @param array $parameters @param string $locale @throws \RuntimeException @return \Swift_Message
[ "Find", "an", "email", "template", "and", "create", "a", "swift", "message", "." ]
f1a4ec71764ceb002657270314947964ab27e966
https://github.com/lexik/LexikMailerBundle/blob/f1a4ec71764ceb002657270314947964ab27e966/Message/MessageFactory.php#L127-L135
188,629
lexik/LexikMailerBundle
Message/MessageFactory.php
MessageFactory.generateMessage
public function generateMessage(EmailInterface $email, $to, array $parameters = array(), $locale = null) { if (null === $locale) { $locale = $this->options['default_locale']; } if (is_object($to)) { $to = $this->getRecipient($to); } try { ...
php
public function generateMessage(EmailInterface $email, $to, array $parameters = array(), $locale = null) { if (null === $locale) { $locale = $this->options['default_locale']; } if (is_object($to)) { $to = $this->getRecipient($to); } try { ...
[ "public", "function", "generateMessage", "(", "EmailInterface", "$", "email", ",", "$", "to", ",", "array", "$", "parameters", "=", "array", "(", ")", ",", "$", "locale", "=", "null", ")", "{", "if", "(", "null", "===", "$", "locale", ")", "{", "$", ...
Create a swift message @param EmailInterface $email @param mixed $to @param array $parameters @param string $locale @return \Swift_Message
[ "Create", "a", "swift", "message" ]
f1a4ec71764ceb002657270314947964ab27e966
https://github.com/lexik/LexikMailerBundle/blob/f1a4ec71764ceb002657270314947964ab27e966/Message/MessageFactory.php#L147-L203
188,630
lexik/LexikMailerBundle
Message/MessageFactory.php
MessageFactory.generateExceptionMessage
protected function generateExceptionMessage($reference) { $traces = debug_backtrace(false); $file = null; $line = null; foreach ($traces as $trace) { if (isset($trace['function']) && $trace['function'] == 'get' && isset($trace['class']) && $trace['class'] == __CLASS__) ...
php
protected function generateExceptionMessage($reference) { $traces = debug_backtrace(false); $file = null; $line = null; foreach ($traces as $trace) { if (isset($trace['function']) && $trace['function'] == 'get' && isset($trace['class']) && $trace['class'] == __CLASS__) ...
[ "protected", "function", "generateExceptionMessage", "(", "$", "reference", ")", "{", "$", "traces", "=", "debug_backtrace", "(", "false", ")", ";", "$", "file", "=", "null", ";", "$", "line", "=", "null", ";", "foreach", "(", "$", "traces", "as", "$", ...
Create swift message when Email is not found. @param string $reference @return ReferenceNotFoundMessage
[ "Create", "swift", "message", "when", "Email", "is", "not", "found", "." ]
f1a4ec71764ceb002657270314947964ab27e966
https://github.com/lexik/LexikMailerBundle/blob/f1a4ec71764ceb002657270314947964ab27e966/Message/MessageFactory.php#L226-L246
188,631
lexik/LexikMailerBundle
Message/MessageFactory.php
MessageFactory.createMessageInstance
protected function createMessageInstance() { $hasSigner = $this->signer->hasSigner(); $class = $hasSigner ? '\Swift_SignedMessage' : '\Swift_Message'; $message = new $class(); if ($hasSigner) { $message->attachSigner($this->signer->createSigner()); } ...
php
protected function createMessageInstance() { $hasSigner = $this->signer->hasSigner(); $class = $hasSigner ? '\Swift_SignedMessage' : '\Swift_Message'; $message = new $class(); if ($hasSigner) { $message->attachSigner($this->signer->createSigner()); } ...
[ "protected", "function", "createMessageInstance", "(", ")", "{", "$", "hasSigner", "=", "$", "this", "->", "signer", "->", "hasSigner", "(", ")", ";", "$", "class", "=", "$", "hasSigner", "?", "'\\Swift_SignedMessage'", ":", "'\\Swift_Message'", ";", "$", "m...
Create Swiftf message instance @return \Swift_Message
[ "Create", "Swiftf", "message", "instance" ]
f1a4ec71764ceb002657270314947964ab27e966
https://github.com/lexik/LexikMailerBundle/blob/f1a4ec71764ceb002657270314947964ab27e966/Message/MessageFactory.php#L253-L265
188,632
lexik/LexikMailerBundle
Message/MessageFactory.php
MessageFactory.renderFromAddress
protected function renderFromAddress(EmailInterface $email, array $parameters = array()) { if (null === $email->getFromAddress()) { return $this->options['admin_email']; } return $this->renderTemplate('from_address', $parameters, $email->getChecksum()); }
php
protected function renderFromAddress(EmailInterface $email, array $parameters = array()) { if (null === $email->getFromAddress()) { return $this->options['admin_email']; } return $this->renderTemplate('from_address', $parameters, $email->getChecksum()); }
[ "protected", "function", "renderFromAddress", "(", "EmailInterface", "$", "email", ",", "array", "$", "parameters", "=", "array", "(", ")", ")", "{", "if", "(", "null", "===", "$", "email", "->", "getFromAddress", "(", ")", ")", "{", "return", "$", "this...
Render email from address @param EmailInterface $email @param array $parameters @return string
[ "Render", "email", "from", "address" ]
f1a4ec71764ceb002657270314947964ab27e966
https://github.com/lexik/LexikMailerBundle/blob/f1a4ec71764ceb002657270314947964ab27e966/Message/MessageFactory.php#L275-L282
188,633
lexik/LexikMailerBundle
Controller/EmailController.php
EmailController.listAction
public function listAction(Request $request) { $pager = $this->get('lexik_mailer.simple_pager')->retrievePageElements( $this->container->getParameter('lexik_mailer.email_entity.class'), $request->get('page', 1) ); return $this->render('LexikMailerBundle:Email:list.ht...
php
public function listAction(Request $request) { $pager = $this->get('lexik_mailer.simple_pager')->retrievePageElements( $this->container->getParameter('lexik_mailer.email_entity.class'), $request->get('page', 1) ); return $this->render('LexikMailerBundle:Email:list.ht...
[ "public", "function", "listAction", "(", "Request", "$", "request", ")", "{", "$", "pager", "=", "$", "this", "->", "get", "(", "'lexik_mailer.simple_pager'", ")", "->", "retrievePageElements", "(", "$", "this", "->", "container", "->", "getParameter", "(", ...
List all emails @param Request $request @return \Symfony\Component\HttpFoundation\Response
[ "List", "all", "emails" ]
f1a4ec71764ceb002657270314947964ab27e966
https://github.com/lexik/LexikMailerBundle/blob/f1a4ec71764ceb002657270314947964ab27e966/Controller/EmailController.php#L22-L37
188,634
lexik/LexikMailerBundle
Controller/EmailController.php
EmailController.previewAction
public function previewAction($emailId, $lang) { $class = $this->container->getParameter('lexik_mailer.email_entity.class'); $email = $this->get('doctrine.orm.entity_manager')->find($class, $emailId); if (!$email) { throw $this->createNotFoundException(sprintf('No email found fo...
php
public function previewAction($emailId, $lang) { $class = $this->container->getParameter('lexik_mailer.email_entity.class'); $email = $this->get('doctrine.orm.entity_manager')->find($class, $emailId); if (!$email) { throw $this->createNotFoundException(sprintf('No email found fo...
[ "public", "function", "previewAction", "(", "$", "emailId", ",", "$", "lang", ")", "{", "$", "class", "=", "$", "this", "->", "container", "->", "getParameter", "(", "'lexik_mailer.email_entity.class'", ")", ";", "$", "email", "=", "$", "this", "->", "get"...
Preview an email @param int $emailId @param $lang @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException @return \Symfony\Component\HttpFoundation\Response
[ "Preview", "an", "email" ]
f1a4ec71764ceb002657270314947964ab27e966
https://github.com/lexik/LexikMailerBundle/blob/f1a4ec71764ceb002657270314947964ab27e966/Controller/EmailController.php#L134-L152
188,635
lexik/LexikMailerBundle
Controller/EmailController.php
EmailController.deleteTranslationAction
public function deleteTranslationAction($translationId) { $em = $this->get('doctrine.orm.entity_manager'); $translation = $em->find('LexikMailerBundle:EmailTranslation', $translationId); if (!$translation) { throw $this->createNotFoundException(sprintf('No translation found for ...
php
public function deleteTranslationAction($translationId) { $em = $this->get('doctrine.orm.entity_manager'); $translation = $em->find('LexikMailerBundle:EmailTranslation', $translationId); if (!$translation) { throw $this->createNotFoundException(sprintf('No translation found for ...
[ "public", "function", "deleteTranslationAction", "(", "$", "translationId", ")", "{", "$", "em", "=", "$", "this", "->", "get", "(", "'doctrine.orm.entity_manager'", ")", ";", "$", "translation", "=", "$", "em", "->", "find", "(", "'LexikMailerBundle:EmailTransl...
Delete a translation @param string $translationId @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException @return \Symfony\Component\HttpFoundation\RedirectResponse
[ "Delete", "a", "translation" ]
f1a4ec71764ceb002657270314947964ab27e966
https://github.com/lexik/LexikMailerBundle/blob/f1a4ec71764ceb002657270314947964ab27e966/Controller/EmailController.php#L161-L174
188,636
lexik/LexikMailerBundle
Signer/SignerFactory.php
SignerFactory.getSigner
protected function getSigner($signerName) { if (empty($this->signers[$signerName])) { throw new \Exception(sprintf('Signer %s doesnt exist', $signerName)); } return $this->signers[$signerName]; }
php
protected function getSigner($signerName) { if (empty($this->signers[$signerName])) { throw new \Exception(sprintf('Signer %s doesnt exist', $signerName)); } return $this->signers[$signerName]; }
[ "protected", "function", "getSigner", "(", "$", "signerName", ")", "{", "if", "(", "empty", "(", "$", "this", "->", "signers", "[", "$", "signerName", "]", ")", ")", "{", "throw", "new", "\\", "Exception", "(", "sprintf", "(", "'Signer %s doesnt exist'", ...
Get a signer @param string $signerName @return SignerInterface @throws \Exception
[ "Get", "a", "signer" ]
f1a4ec71764ceb002657270314947964ab27e966
https://github.com/lexik/LexikMailerBundle/blob/f1a4ec71764ceb002657270314947964ab27e966/Signer/SignerFactory.php#L75-L82
188,637
lexik/LexikMailerBundle
Entity/Email.php
Email.getTranslation
public function getTranslation($lang) { // Check if locale given if (strpos($lang, '_')) { $parts = explode('_', $lang); $lang = array_shift($parts); } foreach ($this->getTranslations() as $translation) { if ($translation->getLang() === $lang) { ...
php
public function getTranslation($lang) { // Check if locale given if (strpos($lang, '_')) { $parts = explode('_', $lang); $lang = array_shift($parts); } foreach ($this->getTranslations() as $translation) { if ($translation->getLang() === $lang) { ...
[ "public", "function", "getTranslation", "(", "$", "lang", ")", "{", "// Check if locale given", "if", "(", "strpos", "(", "$", "lang", ",", "'_'", ")", ")", "{", "$", "parts", "=", "explode", "(", "'_'", ",", "$", "lang", ")", ";", "$", "lang", "=", ...
Get EmailTranslation for a given lang, if not exist it will be created @param string $lang @return EmailTranslation
[ "Get", "EmailTranslation", "for", "a", "given", "lang", "if", "not", "exist", "it", "will", "be", "created" ]
f1a4ec71764ceb002657270314947964ab27e966
https://github.com/lexik/LexikMailerBundle/blob/f1a4ec71764ceb002657270314947964ab27e966/Entity/Email.php#L277-L295
188,638
AndrewNovikof/omnipay-sberbank
src/Message/AbstractRequest.php
AbstractRequest.specifyAdditionalParameters
public function specifyAdditionalParameters(array $data, array $additionalParams): array { foreach ($additionalParams as $param) { $method = 'get' . ucfirst($param); if (method_exists($this, $method)) { $value = $this->{$method}(); if ($value) { ...
php
public function specifyAdditionalParameters(array $data, array $additionalParams): array { foreach ($additionalParams as $param) { $method = 'get' . ucfirst($param); if (method_exists($this, $method)) { $value = $this->{$method}(); if ($value) { ...
[ "public", "function", "specifyAdditionalParameters", "(", "array", "$", "data", ",", "array", "$", "additionalParams", ")", ":", "array", "{", "foreach", "(", "$", "additionalParams", "as", "$", "param", ")", "{", "$", "method", "=", "'get'", ".", "ucfirst",...
Add additional params to data @param array $data @param array $additionalParams @return array
[ "Add", "additional", "params", "to", "data" ]
4d1cc6f51079b3ad67704325b785e2a7f98fb313
https://github.com/AndrewNovikof/omnipay-sberbank/blob/4d1cc6f51079b3ad67704325b785e2a7f98fb313/src/Message/AbstractRequest.php#L193-L205
188,639
lexik/LexikMailerBundle
Signer/DkimSigner.php
DkimSigner.getPrivateKey
protected function getPrivateKey() { if (empty($this->options['private_key_path'])) { throw new \RuntimeException('Missing private_key_path for generate a DKIM signature.'); } if (!is_readable($this->options['private_key_path'])) { throw new \RuntimeException(sprintf...
php
protected function getPrivateKey() { if (empty($this->options['private_key_path'])) { throw new \RuntimeException('Missing private_key_path for generate a DKIM signature.'); } if (!is_readable($this->options['private_key_path'])) { throw new \RuntimeException(sprintf...
[ "protected", "function", "getPrivateKey", "(", ")", "{", "if", "(", "empty", "(", "$", "this", "->", "options", "[", "'private_key_path'", "]", ")", ")", "{", "throw", "new", "\\", "RuntimeException", "(", "'Missing private_key_path for generate a DKIM signature.'",...
Get private key @return string @throws \Exception
[ "Get", "private", "key" ]
f1a4ec71764ceb002657270314947964ab27e966
https://github.com/lexik/LexikMailerBundle/blob/f1a4ec71764ceb002657270314947964ab27e966/Signer/DkimSigner.php#L48-L65
188,640
AndrewNovikof/omnipay-sberbank
src/Message/GetBindingsResponse.php
GetBindingsResponse.getBindingId
public function getBindingId($binding_index) { $binding = $this->getBinding(); return array_key_exists('bindingId', $binding[$binding_index]) ? $binding[$binding_index]['bindingId'] : null; }
php
public function getBindingId($binding_index) { $binding = $this->getBinding(); return array_key_exists('bindingId', $binding[$binding_index]) ? $binding[$binding_index]['bindingId'] : null; }
[ "public", "function", "getBindingId", "(", "$", "binding_index", ")", "{", "$", "binding", "=", "$", "this", "->", "getBinding", "(", ")", ";", "return", "array_key_exists", "(", "'bindingId'", ",", "$", "binding", "[", "$", "binding_index", "]", ")", "?",...
The identifier of the bundle created when the order was paid or used for payment. Is present only if the magazine is allowed to create bundles. @param $binding_index @return mixed|null
[ "The", "identifier", "of", "the", "bundle", "created", "when", "the", "order", "was", "paid", "or", "used", "for", "payment", "." ]
4d1cc6f51079b3ad67704325b785e2a7f98fb313
https://github.com/AndrewNovikof/omnipay-sberbank/blob/4d1cc6f51079b3ad67704325b785e2a7f98fb313/src/Message/GetBindingsResponse.php#L27-L31
188,641
AndrewNovikof/omnipay-sberbank
src/Message/GetLastOrdersForMerchantsResponse.php
GetLastOrdersForMerchantsResponse.getOrderStatus
public function getOrderStatus($orderIndex = 0) { $orderStatuses = $this->getOrderStatuses(); return array_key_exists('orderStatus', $orderStatuses[$orderIndex]) ? $orderStatuses[$orderIndex]['orderStatus'] : null; }
php
public function getOrderStatus($orderIndex = 0) { $orderStatuses = $this->getOrderStatuses(); return array_key_exists('orderStatus', $orderStatuses[$orderIndex]) ? $orderStatuses[$orderIndex]['orderStatus'] : null; }
[ "public", "function", "getOrderStatus", "(", "$", "orderIndex", "=", "0", ")", "{", "$", "orderStatuses", "=", "$", "this", "->", "getOrderStatuses", "(", ")", ";", "return", "array_key_exists", "(", "'orderStatus'", ",", "$", "orderStatuses", "[", "$", "ord...
The status of the order in the payment system. @param int $orderIndex @return mixed|null
[ "The", "status", "of", "the", "order", "in", "the", "payment", "system", "." ]
4d1cc6f51079b3ad67704325b785e2a7f98fb313
https://github.com/AndrewNovikof/omnipay-sberbank/blob/4d1cc6f51079b3ad67704325b785e2a7f98fb313/src/Message/GetLastOrdersForMerchantsResponse.php#L68-L73
188,642
AndrewNovikof/omnipay-sberbank
src/Message/GetLastOrdersForMerchantsResponse.php
GetLastOrdersForMerchantsResponse.getActionCodeDescription
public function getActionCodeDescription($orderIndex = 0) { $orderStatuses = $this->getOrderStatuses(); return array_key_exists('actionCodeDescription', $orderStatuses[$orderIndex]) ? $orderStatuses[$orderIndex]['actionCodeDescription'] : null; }
php
public function getActionCodeDescription($orderIndex = 0) { $orderStatuses = $this->getOrderStatuses(); return array_key_exists('actionCodeDescription', $orderStatuses[$orderIndex]) ? $orderStatuses[$orderIndex]['actionCodeDescription'] : null; }
[ "public", "function", "getActionCodeDescription", "(", "$", "orderIndex", "=", "0", ")", "{", "$", "orderStatuses", "=", "$", "this", "->", "getOrderStatuses", "(", ")", ";", "return", "array_key_exists", "(", "'actionCodeDescription'", ",", "$", "orderStatuses", ...
Response code description @param int $orderIndex @return mixed|null
[ "Response", "code", "description" ]
4d1cc6f51079b3ad67704325b785e2a7f98fb313
https://github.com/AndrewNovikof/omnipay-sberbank/blob/4d1cc6f51079b3ad67704325b785e2a7f98fb313/src/Message/GetLastOrdersForMerchantsResponse.php#L94-L99
188,643
AndrewNovikof/omnipay-sberbank
src/Message/GetLastOrdersForMerchantsResponse.php
GetLastOrdersForMerchantsResponse.getAmount
public function getAmount($orderIndex = 0) { $orderStatuses = $this->getOrderStatuses(); return array_key_exists('amount', $orderStatuses[$orderIndex]) ? $orderStatuses[$orderIndex]['amount'] : null; }
php
public function getAmount($orderIndex = 0) { $orderStatuses = $this->getOrderStatuses(); return array_key_exists('amount', $orderStatuses[$orderIndex]) ? $orderStatuses[$orderIndex]['amount'] : null; }
[ "public", "function", "getAmount", "(", "$", "orderIndex", "=", "0", ")", "{", "$", "orderStatuses", "=", "$", "this", "->", "getOrderStatuses", "(", ")", ";", "return", "array_key_exists", "(", "'amount'", ",", "$", "orderStatuses", "[", "$", "orderIndex", ...
The amount of payment in the minimum units of currency. @param int $orderIndex @return mixed|null
[ "The", "amount", "of", "payment", "in", "the", "minimum", "units", "of", "currency", "." ]
4d1cc6f51079b3ad67704325b785e2a7f98fb313
https://github.com/AndrewNovikof/omnipay-sberbank/blob/4d1cc6f51079b3ad67704325b785e2a7f98fb313/src/Message/GetLastOrdersForMerchantsResponse.php#L107-L111
188,644
AndrewNovikof/omnipay-sberbank
src/Message/GetLastOrdersForMerchantsResponse.php
GetLastOrdersForMerchantsResponse.getCurrency
public function getCurrency($orderIndex = 0) { $orderStatuses = $this->getOrderStatuses(); return array_key_exists('currency', $orderStatuses[$orderIndex]) ? $orderStatuses[$orderIndex]['currency'] : null; }
php
public function getCurrency($orderIndex = 0) { $orderStatuses = $this->getOrderStatuses(); return array_key_exists('currency', $orderStatuses[$orderIndex]) ? $orderStatuses[$orderIndex]['currency'] : null; }
[ "public", "function", "getCurrency", "(", "$", "orderIndex", "=", "0", ")", "{", "$", "orderStatuses", "=", "$", "this", "->", "getOrderStatuses", "(", ")", ";", "return", "array_key_exists", "(", "'currency'", ",", "$", "orderStatuses", "[", "$", "orderInde...
The currency code of the payment is ISO 4217. If not specified, it is considered equal to the default currency code. @param int $orderIndex @return mixed|null
[ "The", "currency", "code", "of", "the", "payment", "is", "ISO", "4217", "." ]
4d1cc6f51079b3ad67704325b785e2a7f98fb313
https://github.com/AndrewNovikof/omnipay-sberbank/blob/4d1cc6f51079b3ad67704325b785e2a7f98fb313/src/Message/GetLastOrdersForMerchantsResponse.php#L121-L126
188,645
AndrewNovikof/omnipay-sberbank
src/Message/GetLastOrdersForMerchantsResponse.php
GetLastOrdersForMerchantsResponse.getDate
public function getDate($orderIndex = 0) { $orderStatuses = $this->getOrderStatuses(); return array_key_exists('date', $orderStatuses[$orderIndex]) ? $orderStatuses[$orderIndex]['date'] : null; }
php
public function getDate($orderIndex = 0) { $orderStatuses = $this->getOrderStatuses(); return array_key_exists('date', $orderStatuses[$orderIndex]) ? $orderStatuses[$orderIndex]['date'] : null; }
[ "public", "function", "getDate", "(", "$", "orderIndex", "=", "0", ")", "{", "$", "orderStatuses", "=", "$", "this", "->", "getOrderStatuses", "(", ")", ";", "return", "array_key_exists", "(", "'date'", ",", "$", "orderStatuses", "[", "$", "orderIndex", "]...
Date of order registration. @param int $orderIndex @return mixed|null
[ "Date", "of", "order", "registration", "." ]
4d1cc6f51079b3ad67704325b785e2a7f98fb313
https://github.com/AndrewNovikof/omnipay-sberbank/blob/4d1cc6f51079b3ad67704325b785e2a7f98fb313/src/Message/GetLastOrdersForMerchantsResponse.php#L134-L138
188,646
AndrewNovikof/omnipay-sberbank
src/Message/GetLastOrdersForMerchantsResponse.php
GetLastOrdersForMerchantsResponse.getOrderDescription
public function getOrderDescription($orderIndex = 0) { $orderStatuses = $this->getOrderStatuses(); return array_key_exists('orderDescription', $orderStatuses[$orderIndex]) ? $orderStatuses[$orderIndex]['orderDescription'] : null; }
php
public function getOrderDescription($orderIndex = 0) { $orderStatuses = $this->getOrderStatuses(); return array_key_exists('orderDescription', $orderStatuses[$orderIndex]) ? $orderStatuses[$orderIndex]['orderDescription'] : null; }
[ "public", "function", "getOrderDescription", "(", "$", "orderIndex", "=", "0", ")", "{", "$", "orderStatuses", "=", "$", "this", "->", "getOrderStatuses", "(", ")", ";", "return", "array_key_exists", "(", "'orderDescription'", ",", "$", "orderStatuses", "[", "...
Description of the order transferred at its registration @param int $orderIndex @return mixed|null
[ "Description", "of", "the", "order", "transferred", "at", "its", "registration" ]
4d1cc6f51079b3ad67704325b785e2a7f98fb313
https://github.com/AndrewNovikof/omnipay-sberbank/blob/4d1cc6f51079b3ad67704325b785e2a7f98fb313/src/Message/GetLastOrdersForMerchantsResponse.php#L146-L151
188,647
AndrewNovikof/omnipay-sberbank
src/Message/GetLastOrdersForMerchantsResponse.php
GetLastOrdersForMerchantsResponse.getIp
public function getIp($orderIndex = 0) { $orderStatuses = $this->getOrderStatuses(); return array_key_exists('ip', $orderStatuses[$orderIndex]) ? $orderStatuses[$orderIndex]['ip'] : null; }
php
public function getIp($orderIndex = 0) { $orderStatuses = $this->getOrderStatuses(); return array_key_exists('ip', $orderStatuses[$orderIndex]) ? $orderStatuses[$orderIndex]['ip'] : null; }
[ "public", "function", "getIp", "(", "$", "orderIndex", "=", "0", ")", "{", "$", "orderStatuses", "=", "$", "this", "->", "getOrderStatuses", "(", ")", ";", "return", "array_key_exists", "(", "'ip'", ",", "$", "orderStatuses", "[", "$", "orderIndex", "]", ...
IP address of the buyer. Specified only after payment. @param int $orderIndex @return mixed|null
[ "IP", "address", "of", "the", "buyer", "." ]
4d1cc6f51079b3ad67704325b785e2a7f98fb313
https://github.com/AndrewNovikof/omnipay-sberbank/blob/4d1cc6f51079b3ad67704325b785e2a7f98fb313/src/Message/GetLastOrdersForMerchantsResponse.php#L174-L178
188,648
AndrewNovikof/omnipay-sberbank
src/Message/GetLastOrdersForMerchantsResponse.php
GetLastOrdersForMerchantsResponse.getMerchantOrderParams
public function getMerchantOrderParams($orderIndex = 0) { $orderStatuses = $this->getOrderStatuses(); return array_key_exists('merchantOrderParams', $orderStatuses[$orderIndex]) ? $orderStatuses[$orderIndex]['merchantOrderParams'] : []; }
php
public function getMerchantOrderParams($orderIndex = 0) { $orderStatuses = $this->getOrderStatuses(); return array_key_exists('merchantOrderParams', $orderStatuses[$orderIndex]) ? $orderStatuses[$orderIndex]['merchantOrderParams'] : []; }
[ "public", "function", "getMerchantOrderParams", "(", "$", "orderIndex", "=", "0", ")", "{", "$", "orderStatuses", "=", "$", "this", "->", "getOrderStatuses", "(", ")", ";", "return", "array_key_exists", "(", "'merchantOrderParams'", ",", "$", "orderStatuses", "[...
Tag with attributes in which additional parameters of the merchant are transferred @param int $orderIndex @return array
[ "Tag", "with", "attributes", "in", "which", "additional", "parameters", "of", "the", "merchant", "are", "transferred" ]
4d1cc6f51079b3ad67704325b785e2a7f98fb313
https://github.com/AndrewNovikof/omnipay-sberbank/blob/4d1cc6f51079b3ad67704325b785e2a7f98fb313/src/Message/GetLastOrdersForMerchantsResponse.php#L223-L228
188,649
AndrewNovikof/omnipay-sberbank
src/Message/GetLastOrdersForMerchantsResponse.php
GetLastOrdersForMerchantsResponse.getMerchantOrderParamName
public function getMerchantOrderParamName($orderIndex = 0, $paramIndex = 0) { $orderParam = $this->getMerchantOrderParams($orderIndex); return array_key_exists('name', $orderParam[$paramIndex]) ? $orderParam[$paramIndex]['name'] : null; }
php
public function getMerchantOrderParamName($orderIndex = 0, $paramIndex = 0) { $orderParam = $this->getMerchantOrderParams($orderIndex); return array_key_exists('name', $orderParam[$paramIndex]) ? $orderParam[$paramIndex]['name'] : null; }
[ "public", "function", "getMerchantOrderParamName", "(", "$", "orderIndex", "=", "0", ",", "$", "paramIndex", "=", "0", ")", "{", "$", "orderParam", "=", "$", "this", "->", "getMerchantOrderParams", "(", "$", "orderIndex", ")", ";", "return", "array_key_exists"...
Name of additional merchant parameter @param int $orderIndex @param int $paramIndex @return mixed|null
[ "Name", "of", "additional", "merchant", "parameter" ]
4d1cc6f51079b3ad67704325b785e2a7f98fb313
https://github.com/AndrewNovikof/omnipay-sberbank/blob/4d1cc6f51079b3ad67704325b785e2a7f98fb313/src/Message/GetLastOrdersForMerchantsResponse.php#L237-L241
188,650
AndrewNovikof/omnipay-sberbank
src/Message/GetLastOrdersForMerchantsResponse.php
GetLastOrdersForMerchantsResponse.getMerchantOrderParamValue
public function getMerchantOrderParamValue($orderIndex = 0, $paramIndex = 0) { $orderParam = $this->getMerchantOrderParams($orderIndex); return array_key_exists('value', $orderParam[$paramIndex]) ? $orderParam[$paramIndex]['value'] : null; }
php
public function getMerchantOrderParamValue($orderIndex = 0, $paramIndex = 0) { $orderParam = $this->getMerchantOrderParams($orderIndex); return array_key_exists('value', $orderParam[$paramIndex]) ? $orderParam[$paramIndex]['value'] : null; }
[ "public", "function", "getMerchantOrderParamValue", "(", "$", "orderIndex", "=", "0", ",", "$", "paramIndex", "=", "0", ")", "{", "$", "orderParam", "=", "$", "this", "->", "getMerchantOrderParams", "(", "$", "orderIndex", ")", ";", "return", "array_key_exists...
Value of additional merchant parameter @param int $orderIndex @param int $paramIndex @return mixed|null
[ "Value", "of", "additional", "merchant", "parameter" ]
4d1cc6f51079b3ad67704325b785e2a7f98fb313
https://github.com/AndrewNovikof/omnipay-sberbank/blob/4d1cc6f51079b3ad67704325b785e2a7f98fb313/src/Message/GetLastOrdersForMerchantsResponse.php#L250-L254
188,651
AndrewNovikof/omnipay-sberbank
src/Message/GetLastOrdersForMerchantsResponse.php
GetLastOrdersForMerchantsResponse.getBindingId
public function getBindingId($orderIndex = 0) { $bindingInfo = $this->getBindingInfo($orderIndex); return array_key_exists('bindingId', $bindingInfo) ? $bindingInfo['bindingId'] : null; }
php
public function getBindingId($orderIndex = 0) { $bindingInfo = $this->getBindingInfo($orderIndex); return array_key_exists('bindingId', $bindingInfo) ? $bindingInfo['bindingId'] : null; }
[ "public", "function", "getBindingId", "(", "$", "orderIndex", "=", "0", ")", "{", "$", "bindingInfo", "=", "$", "this", "->", "getBindingInfo", "(", "$", "orderIndex", ")", ";", "return", "array_key_exists", "(", "'bindingId'", ",", "$", "bindingInfo", ")", ...
The identifier of the bundle used for payment. @param int $orderIndex @return mixed|null
[ "The", "identifier", "of", "the", "bundle", "used", "for", "payment", "." ]
4d1cc6f51079b3ad67704325b785e2a7f98fb313
https://github.com/AndrewNovikof/omnipay-sberbank/blob/4d1cc6f51079b3ad67704325b785e2a7f98fb313/src/Message/GetLastOrdersForMerchantsResponse.php#L287-L291
188,652
AndrewNovikof/omnipay-sberbank
src/Message/GetLastOrdersForMerchantsResponse.php
GetLastOrdersForMerchantsResponse.getAttributesName
public function getAttributesName($orderIndex = 0, $attributeIndex = 0) { $attributes = $this->getAttributes($orderIndex); return array_key_exists('name', $attributes[$attributeIndex]) ? $attributes[$attributeIndex]['name'] : null; }
php
public function getAttributesName($orderIndex = 0, $attributeIndex = 0) { $attributes = $this->getAttributes($orderIndex); return array_key_exists('name', $attributes[$attributeIndex]) ? $attributes[$attributeIndex]['name'] : null; }
[ "public", "function", "getAttributesName", "(", "$", "orderIndex", "=", "0", ",", "$", "attributeIndex", "=", "0", ")", "{", "$", "attributes", "=", "$", "this", "->", "getAttributes", "(", "$", "orderIndex", ")", ";", "return", "array_key_exists", "(", "'...
Name of attribute @param int $orderIndex @param int $attributeIndex @return mixed|null
[ "Name", "of", "attribute" ]
4d1cc6f51079b3ad67704325b785e2a7f98fb313
https://github.com/AndrewNovikof/omnipay-sberbank/blob/4d1cc6f51079b3ad67704325b785e2a7f98fb313/src/Message/GetLastOrdersForMerchantsResponse.php#L313-L317
188,653
AndrewNovikof/omnipay-sberbank
src/Message/GetLastOrdersForMerchantsResponse.php
GetLastOrdersForMerchantsResponse.getAttributesValue
public function getAttributesValue($orderIndex = 0, $attributeIndex = 0) { $attributes = $this->getAttributes($orderIndex); return array_key_exists('value', $attributes[$attributeIndex]) ? $attributes[$attributeIndex]['value'] : null; }
php
public function getAttributesValue($orderIndex = 0, $attributeIndex = 0) { $attributes = $this->getAttributes($orderIndex); return array_key_exists('value', $attributes[$attributeIndex]) ? $attributes[$attributeIndex]['value'] : null; }
[ "public", "function", "getAttributesValue", "(", "$", "orderIndex", "=", "0", ",", "$", "attributeIndex", "=", "0", ")", "{", "$", "attributes", "=", "$", "this", "->", "getAttributes", "(", "$", "orderIndex", ")", ";", "return", "array_key_exists", "(", "...
Value of attribute @param int $orderIndex @param int $attributeIndex @return mixed|null
[ "Value", "of", "attribute" ]
4d1cc6f51079b3ad67704325b785e2a7f98fb313
https://github.com/AndrewNovikof/omnipay-sberbank/blob/4d1cc6f51079b3ad67704325b785e2a7f98fb313/src/Message/GetLastOrdersForMerchantsResponse.php#L326-L330
188,654
AndrewNovikof/omnipay-sberbank
src/Message/GetLastOrdersForMerchantsResponse.php
GetLastOrdersForMerchantsResponse.getCardholderName
public function getCardholderName($orderIndex = 0) { $cardAuthInfo = $this->getCardAuthInfo($orderIndex); return array_key_exists('cardholderName', $cardAuthInfo) ? $cardAuthInfo['cardholderName'] : null; }
php
public function getCardholderName($orderIndex = 0) { $cardAuthInfo = $this->getCardAuthInfo($orderIndex); return array_key_exists('cardholderName', $cardAuthInfo) ? $cardAuthInfo['cardholderName'] : null; }
[ "public", "function", "getCardholderName", "(", "$", "orderIndex", "=", "0", ")", "{", "$", "cardAuthInfo", "=", "$", "this", "->", "getCardAuthInfo", "(", "$", "orderIndex", ")", ";", "return", "array_key_exists", "(", "'cardholderName'", ",", "$", "cardAuthI...
Name of the card holder. @param int $orderIndex @return mixed|null
[ "Name", "of", "the", "card", "holder", "." ]
4d1cc6f51079b3ad67704325b785e2a7f98fb313
https://github.com/AndrewNovikof/omnipay-sberbank/blob/4d1cc6f51079b3ad67704325b785e2a7f98fb313/src/Message/GetLastOrdersForMerchantsResponse.php#L375-L379
188,655
AndrewNovikof/omnipay-sberbank
src/Message/GetLastOrdersForMerchantsResponse.php
GetLastOrdersForMerchantsResponse.getApprovalCode
public function getApprovalCode($orderIndex = 0) { $cardAuthInfo = $this->getCardAuthInfo($orderIndex); return array_key_exists('approvalCode', $cardAuthInfo) ? $cardAuthInfo['approvalCode'] : null; }
php
public function getApprovalCode($orderIndex = 0) { $cardAuthInfo = $this->getCardAuthInfo($orderIndex); return array_key_exists('approvalCode', $cardAuthInfo) ? $cardAuthInfo['approvalCode'] : null; }
[ "public", "function", "getApprovalCode", "(", "$", "orderIndex", "=", "0", ")", "{", "$", "cardAuthInfo", "=", "$", "this", "->", "getCardAuthInfo", "(", "$", "orderIndex", ")", ";", "return", "array_key_exists", "(", "'approvalCode'", ",", "$", "cardAuthInfo"...
The authorization code of the payment. A fixed-length field (6 characters), can contain numbers and Latin letters. @param int $orderIndex @return mixed|null
[ "The", "authorization", "code", "of", "the", "payment", "." ]
4d1cc6f51079b3ad67704325b785e2a7f98fb313
https://github.com/AndrewNovikof/omnipay-sberbank/blob/4d1cc6f51079b3ad67704325b785e2a7f98fb313/src/Message/GetLastOrdersForMerchantsResponse.php#L389-L393
188,656
AndrewNovikof/omnipay-sberbank
src/Message/GetLastOrdersForMerchantsResponse.php
GetLastOrdersForMerchantsResponse.getPaymentAmountInfo
public function getPaymentAmountInfo($index = 0) { $orderStatuses = $this->getOrderStatuses(); return array_key_exists('paymentAmountInfo', $orderStatuses[$index]) ? $orderStatuses[$index]['paymentAmountInfo'] : []; }
php
public function getPaymentAmountInfo($index = 0) { $orderStatuses = $this->getOrderStatuses(); return array_key_exists('paymentAmountInfo', $orderStatuses[$index]) ? $orderStatuses[$index]['paymentAmountInfo'] : []; }
[ "public", "function", "getPaymentAmountInfo", "(", "$", "index", "=", "0", ")", "{", "$", "orderStatuses", "=", "$", "this", "->", "getOrderStatuses", "(", ")", ";", "return", "array_key_exists", "(", "'paymentAmountInfo'", ",", "$", "orderStatuses", "[", "$",...
Information about the amounts of confirmation, cancellation, refund. @param int $index @return array
[ "Information", "about", "the", "amounts", "of", "confirmation", "cancellation", "refund", "." ]
4d1cc6f51079b3ad67704325b785e2a7f98fb313
https://github.com/AndrewNovikof/omnipay-sberbank/blob/4d1cc6f51079b3ad67704325b785e2a7f98fb313/src/Message/GetLastOrdersForMerchantsResponse.php#L401-L406
188,657
AndrewNovikof/omnipay-sberbank
src/Message/GetLastOrdersForMerchantsResponse.php
GetLastOrdersForMerchantsResponse.getPaymentState
public function getPaymentState($orderIndex = 0) { $paymentAmountInfo = $this->getPaymentAmountInfo($orderIndex); return array_key_exists('paymentState', $paymentAmountInfo) ? $paymentAmountInfo['paymentState'] : null; }
php
public function getPaymentState($orderIndex = 0) { $paymentAmountInfo = $this->getPaymentAmountInfo($orderIndex); return array_key_exists('paymentState', $paymentAmountInfo) ? $paymentAmountInfo['paymentState'] : null; }
[ "public", "function", "getPaymentState", "(", "$", "orderIndex", "=", "0", ")", "{", "$", "paymentAmountInfo", "=", "$", "this", "->", "getPaymentAmountInfo", "(", "$", "orderIndex", ")", ";", "return", "array_key_exists", "(", "'paymentState'", ",", "$", "pay...
State of payment @param int $orderIndex @return mixed|null
[ "State", "of", "payment" ]
4d1cc6f51079b3ad67704325b785e2a7f98fb313
https://github.com/AndrewNovikof/omnipay-sberbank/blob/4d1cc6f51079b3ad67704325b785e2a7f98fb313/src/Message/GetLastOrdersForMerchantsResponse.php#L414-L418
188,658
AndrewNovikof/omnipay-sberbank
src/Message/GetLastOrdersForMerchantsResponse.php
GetLastOrdersForMerchantsResponse.getApprovedAmount
public function getApprovedAmount($orderIndex = 0) { $paymentAmountInfo = $this->getPaymentAmountInfo($orderIndex); return array_key_exists('approvedAmount', $paymentAmountInfo) ? $paymentAmountInfo['approvedAmount'] : null; }
php
public function getApprovedAmount($orderIndex = 0) { $paymentAmountInfo = $this->getPaymentAmountInfo($orderIndex); return array_key_exists('approvedAmount', $paymentAmountInfo) ? $paymentAmountInfo['approvedAmount'] : null; }
[ "public", "function", "getApprovedAmount", "(", "$", "orderIndex", "=", "0", ")", "{", "$", "paymentAmountInfo", "=", "$", "this", "->", "getPaymentAmountInfo", "(", "$", "orderIndex", ")", ";", "return", "array_key_exists", "(", "'approvedAmount'", ",", "$", ...
Amount confirmed for cancellation. @param int $orderIndex @return mixed|null
[ "Amount", "confirmed", "for", "cancellation", "." ]
4d1cc6f51079b3ad67704325b785e2a7f98fb313
https://github.com/AndrewNovikof/omnipay-sberbank/blob/4d1cc6f51079b3ad67704325b785e2a7f98fb313/src/Message/GetLastOrdersForMerchantsResponse.php#L426-L430
188,659
AndrewNovikof/omnipay-sberbank
src/Message/GetLastOrdersForMerchantsResponse.php
GetLastOrdersForMerchantsResponse.getDepositedAmount
public function getDepositedAmount($orderIndex = 0) { $paymentAmountInfo = $this->getPaymentAmountInfo($orderIndex); return array_key_exists('depositedAmount', $paymentAmountInfo) ? $paymentAmountInfo['depositedAmount'] : null; }
php
public function getDepositedAmount($orderIndex = 0) { $paymentAmountInfo = $this->getPaymentAmountInfo($orderIndex); return array_key_exists('depositedAmount', $paymentAmountInfo) ? $paymentAmountInfo['depositedAmount'] : null; }
[ "public", "function", "getDepositedAmount", "(", "$", "orderIndex", "=", "0", ")", "{", "$", "paymentAmountInfo", "=", "$", "this", "->", "getPaymentAmountInfo", "(", "$", "orderIndex", ")", ";", "return", "array_key_exists", "(", "'depositedAmount'", ",", "$", ...
The amount charged from the card. @param int $orderIndex @return mixed|null
[ "The", "amount", "charged", "from", "the", "card", "." ]
4d1cc6f51079b3ad67704325b785e2a7f98fb313
https://github.com/AndrewNovikof/omnipay-sberbank/blob/4d1cc6f51079b3ad67704325b785e2a7f98fb313/src/Message/GetLastOrdersForMerchantsResponse.php#L438-L442
188,660
AndrewNovikof/omnipay-sberbank
src/Message/GetLastOrdersForMerchantsResponse.php
GetLastOrdersForMerchantsResponse.getRefundedAmount
public function getRefundedAmount($orderIndex = 0) { $paymentAmountInfo = $this->getPaymentAmountInfo($orderIndex); return array_key_exists('refundedAmount', $paymentAmountInfo) ? $paymentAmountInfo['refundedAmount'] : null; }
php
public function getRefundedAmount($orderIndex = 0) { $paymentAmountInfo = $this->getPaymentAmountInfo($orderIndex); return array_key_exists('refundedAmount', $paymentAmountInfo) ? $paymentAmountInfo['refundedAmount'] : null; }
[ "public", "function", "getRefundedAmount", "(", "$", "orderIndex", "=", "0", ")", "{", "$", "paymentAmountInfo", "=", "$", "this", "->", "getPaymentAmountInfo", "(", "$", "orderIndex", ")", ";", "return", "array_key_exists", "(", "'refundedAmount'", ",", "$", ...
Refund amount. @param int $orderIndex @return mixed|null
[ "Refund", "amount", "." ]
4d1cc6f51079b3ad67704325b785e2a7f98fb313
https://github.com/AndrewNovikof/omnipay-sberbank/blob/4d1cc6f51079b3ad67704325b785e2a7f98fb313/src/Message/GetLastOrdersForMerchantsResponse.php#L450-L454
188,661
AndrewNovikof/omnipay-sberbank
src/Message/GetLastOrdersForMerchantsResponse.php
GetLastOrdersForMerchantsResponse.getBankInfo
public function getBankInfo($index = 0) { $orderStatuses = $this->getOrderStatuses(); return array_key_exists('bankInfo', $orderStatuses[$index]) ? $orderStatuses[$index]['bankInfo'] : []; }
php
public function getBankInfo($index = 0) { $orderStatuses = $this->getOrderStatuses(); return array_key_exists('bankInfo', $orderStatuses[$index]) ? $orderStatuses[$index]['bankInfo'] : []; }
[ "public", "function", "getBankInfo", "(", "$", "index", "=", "0", ")", "{", "$", "orderStatuses", "=", "$", "this", "->", "getOrderStatuses", "(", ")", ";", "return", "array_key_exists", "(", "'bankInfo'", ",", "$", "orderStatuses", "[", "$", "index", "]",...
Information about the Issuing Bank. @param int $index @return array
[ "Information", "about", "the", "Issuing", "Bank", "." ]
4d1cc6f51079b3ad67704325b785e2a7f98fb313
https://github.com/AndrewNovikof/omnipay-sberbank/blob/4d1cc6f51079b3ad67704325b785e2a7f98fb313/src/Message/GetLastOrdersForMerchantsResponse.php#L462-L466
188,662
AndrewNovikof/omnipay-sberbank
src/Message/GetLastOrdersForMerchantsResponse.php
GetLastOrdersForMerchantsResponse.getBankName
public function getBankName($orderIndex = 0) { $bankInfo = $this->getBankInfo($orderIndex); return array_key_exists('bankName', $bankInfo) ? $bankInfo['bankName'] : null; }
php
public function getBankName($orderIndex = 0) { $bankInfo = $this->getBankInfo($orderIndex); return array_key_exists('bankName', $bankInfo) ? $bankInfo['bankName'] : null; }
[ "public", "function", "getBankName", "(", "$", "orderIndex", "=", "0", ")", "{", "$", "bankInfo", "=", "$", "this", "->", "getBankInfo", "(", "$", "orderIndex", ")", ";", "return", "array_key_exists", "(", "'bankName'", ",", "$", "bankInfo", ")", "?", "$...
Name of the issuing bank. @param int $orderIndex @return mixed|null
[ "Name", "of", "the", "issuing", "bank", "." ]
4d1cc6f51079b3ad67704325b785e2a7f98fb313
https://github.com/AndrewNovikof/omnipay-sberbank/blob/4d1cc6f51079b3ad67704325b785e2a7f98fb313/src/Message/GetLastOrdersForMerchantsResponse.php#L474-L478
188,663
AndrewNovikof/omnipay-sberbank
src/Message/GetLastOrdersForMerchantsResponse.php
GetLastOrdersForMerchantsResponse.getBankCountryCode
public function getBankCountryCode($orderIndex = 0) { $bankInfo = $this->getBankInfo($orderIndex); return array_key_exists('bankCountryCode', $bankInfo) ? $bankInfo['bankCountryCode'] : null; }
php
public function getBankCountryCode($orderIndex = 0) { $bankInfo = $this->getBankInfo($orderIndex); return array_key_exists('bankCountryCode', $bankInfo) ? $bankInfo['bankCountryCode'] : null; }
[ "public", "function", "getBankCountryCode", "(", "$", "orderIndex", "=", "0", ")", "{", "$", "bankInfo", "=", "$", "this", "->", "getBankInfo", "(", "$", "orderIndex", ")", ";", "return", "array_key_exists", "(", "'bankCountryCode'", ",", "$", "bankInfo", ")...
Country code of the Issuing Bank. @param int $orderIndex @return mixed|null
[ "Country", "code", "of", "the", "Issuing", "Bank", "." ]
4d1cc6f51079b3ad67704325b785e2a7f98fb313
https://github.com/AndrewNovikof/omnipay-sberbank/blob/4d1cc6f51079b3ad67704325b785e2a7f98fb313/src/Message/GetLastOrdersForMerchantsResponse.php#L486-L490
188,664
AndrewNovikof/omnipay-sberbank
src/Message/GetLastOrdersForMerchantsResponse.php
GetLastOrdersForMerchantsResponse.getBankCountryName
public function getBankCountryName($orderIndex = 0) { $bankInfo = $this->getBankInfo($orderIndex); return array_key_exists('bankCountryName', $bankInfo) ? $bankInfo['bankCountryName'] : null; }
php
public function getBankCountryName($orderIndex = 0) { $bankInfo = $this->getBankInfo($orderIndex); return array_key_exists('bankCountryName', $bankInfo) ? $bankInfo['bankCountryName'] : null; }
[ "public", "function", "getBankCountryName", "(", "$", "orderIndex", "=", "0", ")", "{", "$", "bankInfo", "=", "$", "this", "->", "getBankInfo", "(", "$", "orderIndex", ")", ";", "return", "array_key_exists", "(", "'bankCountryName'", ",", "$", "bankInfo", ")...
Country name of the Issuing Bank. @param int $orderIndex @return mixed|null
[ "Country", "name", "of", "the", "Issuing", "Bank", "." ]
4d1cc6f51079b3ad67704325b785e2a7f98fb313
https://github.com/AndrewNovikof/omnipay-sberbank/blob/4d1cc6f51079b3ad67704325b785e2a7f98fb313/src/Message/GetLastOrdersForMerchantsResponse.php#L498-L502
188,665
lexik/LexikMailerBundle
Entity/Layout.php
Layout.getTranslation
public function getTranslation($lang) { // Check if locale given if (strpos($lang, '_')) { $parts = explode('_', $lang); $lang = array_shift($parts); } foreach ($this->getTranslations() as $translation) { if ($translation->getLang() === $lang) { ...
php
public function getTranslation($lang) { // Check if locale given if (strpos($lang, '_')) { $parts = explode('_', $lang); $lang = array_shift($parts); } foreach ($this->getTranslations() as $translation) { if ($translation->getLang() === $lang) { ...
[ "public", "function", "getTranslation", "(", "$", "lang", ")", "{", "// Check if locale given", "if", "(", "strpos", "(", "$", "lang", ",", "'_'", ")", ")", "{", "$", "parts", "=", "explode", "(", "'_'", ",", "$", "lang", ")", ";", "$", "lang", "=", ...
Get LayoutTranslation for a given lang, if not exist it will be created @param string $lang @return \Lexik\Bundle\MailerBundle\Entity\LayoutTranslation
[ "Get", "LayoutTranslation", "for", "a", "given", "lang", "if", "not", "exist", "it", "will", "be", "created" ]
f1a4ec71764ceb002657270314947964ab27e966
https://github.com/lexik/LexikMailerBundle/blob/f1a4ec71764ceb002657270314947964ab27e966/Entity/Layout.php#L175-L193
188,666
lexik/LexikMailerBundle
Message/MessageRenderer.php
MessageRenderer.setStrictVariables
public function setStrictVariables($strict) { if ((bool) $strict) { $this->templating->enableStrictVariables(); } else { $this->templating->disableStrictVariables(); } }
php
public function setStrictVariables($strict) { if ((bool) $strict) { $this->templating->enableStrictVariables(); } else { $this->templating->disableStrictVariables(); } }
[ "public", "function", "setStrictVariables", "(", "$", "strict", ")", "{", "if", "(", "(", "bool", ")", "$", "strict", ")", "{", "$", "this", "->", "templating", "->", "enableStrictVariables", "(", ")", ";", "}", "else", "{", "$", "this", "->", "templat...
Enable or not strict variables. @param boolean $strict
[ "Enable", "or", "not", "strict", "variables", "." ]
f1a4ec71764ceb002657270314947964ab27e966
https://github.com/lexik/LexikMailerBundle/blob/f1a4ec71764ceb002657270314947964ab27e966/Message/MessageRenderer.php#L68-L75
188,667
thephpleague/omnipay-braintree
src/Message/Response.php
Response.transactionValue
protected function transactionValue($key) { if (isset($this->data->transaction) && $this->data->transaction && isset($this->data->transaction->$key)) { return $this->data->transaction->$key; } return null; }
php
protected function transactionValue($key) { if (isset($this->data->transaction) && $this->data->transaction && isset($this->data->transaction->$key)) { return $this->data->transaction->$key; } return null; }
[ "protected", "function", "transactionValue", "(", "$", "key", ")", "{", "if", "(", "isset", "(", "$", "this", "->", "data", "->", "transaction", ")", "&&", "$", "this", "->", "data", "->", "transaction", "&&", "isset", "(", "$", "this", "->", "data", ...
Return a value from the transaction object @param string $key @return mixed
[ "Return", "a", "value", "from", "the", "transaction", "object" ]
227ffdc04ea7c4cd0358f028bf7dfae2228eeb94
https://github.com/thephpleague/omnipay-braintree/blob/227ffdc04ea7c4cd0358f028bf7dfae2228eeb94/src/Message/Response.php#L74-L81
188,668
ubirak/rest-api-behat-extension
src/Json/JsonContext.php
JsonContext.theJsonNodeShouldNotContain
public function theJsonNodeShouldNotContain($jsonNode, $unexpectedValue) { $this->assert(function () use ($jsonNode, $unexpectedValue) { $realValue = $this->evaluateJsonNodeValue($jsonNode); $this->asserter->string((string) $realValue)->notContains($unexpectedValue); }); ...
php
public function theJsonNodeShouldNotContain($jsonNode, $unexpectedValue) { $this->assert(function () use ($jsonNode, $unexpectedValue) { $realValue = $this->evaluateJsonNodeValue($jsonNode); $this->asserter->string((string) $realValue)->notContains($unexpectedValue); }); ...
[ "public", "function", "theJsonNodeShouldNotContain", "(", "$", "jsonNode", ",", "$", "unexpectedValue", ")", "{", "$", "this", "->", "assert", "(", "function", "(", ")", "use", "(", "$", "jsonNode", ",", "$", "unexpectedValue", ")", "{", "$", "realValue", ...
Checks, that given JSON node does not contain given value. @Then /^the JSON node "(?P<jsonNode>[^"]*)" should not contain "(?P<unexpectedValue>.*)"$/
[ "Checks", "that", "given", "JSON", "node", "does", "not", "contain", "given", "value", "." ]
54215751cc9de3042568218c618e96c220a84e2b
https://github.com/ubirak/rest-api-behat-extension/blob/54215751cc9de3042568218c618e96c220a84e2b/src/Json/JsonContext.php#L103-L109
188,669
ubirak/rest-api-behat-extension
src/Json/JsonContext.php
JsonContext.theJsonNodeShouldExist
public function theJsonNodeShouldExist($jsonNode) { try { $this->evaluateJsonNodeValue($jsonNode); } catch (\Exception $e) { throw new WrongJsonExpectation(sprintf("The node '%s' does not exist.", $jsonNode), $this->readJson(), $e); } }
php
public function theJsonNodeShouldExist($jsonNode) { try { $this->evaluateJsonNodeValue($jsonNode); } catch (\Exception $e) { throw new WrongJsonExpectation(sprintf("The node '%s' does not exist.", $jsonNode), $this->readJson(), $e); } }
[ "public", "function", "theJsonNodeShouldExist", "(", "$", "jsonNode", ")", "{", "try", "{", "$", "this", "->", "evaluateJsonNodeValue", "(", "$", "jsonNode", ")", ";", "}", "catch", "(", "\\", "Exception", "$", "e", ")", "{", "throw", "new", "WrongJsonExpe...
Checks, that given JSON node exist. @Given /^the JSON node "(?P<jsonNode>[^"]*)" should exist$/
[ "Checks", "that", "given", "JSON", "node", "exist", "." ]
54215751cc9de3042568218c618e96c220a84e2b
https://github.com/ubirak/rest-api-behat-extension/blob/54215751cc9de3042568218c618e96c220a84e2b/src/Json/JsonContext.php#L116-L123
188,670
ubirak/rest-api-behat-extension
src/Json/JsonContext.php
JsonContext.theJsonNodeShouldNotExist
public function theJsonNodeShouldNotExist($jsonNode) { $e = null; try { $realValue = $this->evaluateJsonNodeValue($jsonNode); } catch (\Exception $e) { // If the node does not exist an exception should be throwed } if ($e === null) { thro...
php
public function theJsonNodeShouldNotExist($jsonNode) { $e = null; try { $realValue = $this->evaluateJsonNodeValue($jsonNode); } catch (\Exception $e) { // If the node does not exist an exception should be throwed } if ($e === null) { thro...
[ "public", "function", "theJsonNodeShouldNotExist", "(", "$", "jsonNode", ")", "{", "$", "e", "=", "null", ";", "try", "{", "$", "realValue", "=", "$", "this", "->", "evaluateJsonNodeValue", "(", "$", "jsonNode", ")", ";", "}", "catch", "(", "\\", "Except...
Checks, that given JSON node does not exist. @Given /^the JSON node "(?P<jsonNode>[^"]*)" should not exist$/
[ "Checks", "that", "given", "JSON", "node", "does", "not", "exist", "." ]
54215751cc9de3042568218c618e96c220a84e2b
https://github.com/ubirak/rest-api-behat-extension/blob/54215751cc9de3042568218c618e96c220a84e2b/src/Json/JsonContext.php#L130-L147
188,671
thephpleague/omnipay-braintree
src/MerchantIndividual.php
MerchantIndividual.setName
public function setName($value) { $names = explode(' ', $value, 2); $this->setFirstName($names[0]); $this->setLastName(isset($names[1]) ? $names[1] : null); return $this; }
php
public function setName($value) { $names = explode(' ', $value, 2); $this->setFirstName($names[0]); $this->setLastName(isset($names[1]) ? $names[1] : null); return $this; }
[ "public", "function", "setName", "(", "$", "value", ")", "{", "$", "names", "=", "explode", "(", "' '", ",", "$", "value", ",", "2", ")", ";", "$", "this", "->", "setFirstName", "(", "$", "names", "[", "0", "]", ")", ";", "$", "this", "->", "se...
Sets the individual name. @param string $value @return $this
[ "Sets", "the", "individual", "name", "." ]
227ffdc04ea7c4cd0358f028bf7dfae2228eeb94
https://github.com/thephpleague/omnipay-braintree/blob/227ffdc04ea7c4cd0358f028bf7dfae2228eeb94/src/MerchantIndividual.php#L183-L190
188,672
weblee/Mandrill
src/MandrillServiceProvider.php
MandrillServiceProvider.register
public function register() { $this->app->bind('mandrill_mail', function($app){ return new Mail($app['config']['services']['mandrill']['secret']); }); $this->app->bind('Weblee\Mandrill\Mail', function($app){ return new Mail($app['config']['services']['mandrill']['sec...
php
public function register() { $this->app->bind('mandrill_mail', function($app){ return new Mail($app['config']['services']['mandrill']['secret']); }); $this->app->bind('Weblee\Mandrill\Mail', function($app){ return new Mail($app['config']['services']['mandrill']['sec...
[ "public", "function", "register", "(", ")", "{", "$", "this", "->", "app", "->", "bind", "(", "'mandrill_mail'", ",", "function", "(", "$", "app", ")", "{", "return", "new", "Mail", "(", "$", "app", "[", "'config'", "]", "[", "'services'", "]", "[", ...
Register the mandrill service provider. @return void
[ "Register", "the", "mandrill", "service", "provider", "." ]
809dedb3f8df717e59a8818d236be24028d1e458
https://github.com/weblee/Mandrill/blob/809dedb3f8df717e59a8818d236be24028d1e458/src/MandrillServiceProvider.php#L26-L37
188,673
thephpleague/omnipay-braintree
src/Message/AbstractMerchantAccountRequest.php
AbstractMerchantAccountRequest.getBusinessData
public function getBusinessData() { $business = $this->getBusiness(); if (!$business) { return array(); } $data = array( 'address' => array( 'streetAddress' => $business->getAddress1(), 'locality' => $business->getCity(), ...
php
public function getBusinessData() { $business = $this->getBusiness(); if (!$business) { return array(); } $data = array( 'address' => array( 'streetAddress' => $business->getAddress1(), 'locality' => $business->getCity(), ...
[ "public", "function", "getBusinessData", "(", ")", "{", "$", "business", "=", "$", "this", "->", "getBusiness", "(", ")", ";", "if", "(", "!", "$", "business", ")", "{", "return", "array", "(", ")", ";", "}", "$", "data", "=", "array", "(", "'addre...
Get the business data. @return array
[ "Get", "the", "business", "data", "." ]
227ffdc04ea7c4cd0358f028bf7dfae2228eeb94
https://github.com/thephpleague/omnipay-braintree/blob/227ffdc04ea7c4cd0358f028bf7dfae2228eeb94/src/Message/AbstractMerchantAccountRequest.php#L24-L55
188,674
thephpleague/omnipay-braintree
src/Message/AbstractMerchantAccountRequest.php
AbstractMerchantAccountRequest.setBusiness
public function setBusiness($value) { if ($value && !$value instanceof MerchantBusiness) { $value = new MerchantBusiness($value); } return $this->setParameter('business', $value); }
php
public function setBusiness($value) { if ($value && !$value instanceof MerchantBusiness) { $value = new MerchantBusiness($value); } return $this->setParameter('business', $value); }
[ "public", "function", "setBusiness", "(", "$", "value", ")", "{", "if", "(", "$", "value", "&&", "!", "$", "value", "instanceof", "MerchantBusiness", ")", "{", "$", "value", "=", "new", "MerchantBusiness", "(", "$", "value", ")", ";", "}", "return", "$...
Sets the business. @param MerchantBusiness|array $value @return $this
[ "Sets", "the", "business", "." ]
227ffdc04ea7c4cd0358f028bf7dfae2228eeb94
https://github.com/thephpleague/omnipay-braintree/blob/227ffdc04ea7c4cd0358f028bf7dfae2228eeb94/src/Message/AbstractMerchantAccountRequest.php#L63-L70
188,675
thephpleague/omnipay-braintree
src/Message/AbstractMerchantAccountRequest.php
AbstractMerchantAccountRequest.getFundingData
public function getFundingData() { $funding = $this->getFunding(); if (!$funding) { return array(); } $data = array( 'accountNumber' => $funding->getAccountNumber(), 'descriptor' => $funding->getDescriptor(), 'destination' => $funding...
php
public function getFundingData() { $funding = $this->getFunding(); if (!$funding) { return array(); } $data = array( 'accountNumber' => $funding->getAccountNumber(), 'descriptor' => $funding->getDescriptor(), 'destination' => $funding...
[ "public", "function", "getFundingData", "(", ")", "{", "$", "funding", "=", "$", "this", "->", "getFunding", "(", ")", ";", "if", "(", "!", "$", "funding", ")", "{", "return", "array", "(", ")", ";", "}", "$", "data", "=", "array", "(", "'accountNu...
Get the funding data. @return array
[ "Get", "the", "funding", "data", "." ]
227ffdc04ea7c4cd0358f028bf7dfae2228eeb94
https://github.com/thephpleague/omnipay-braintree/blob/227ffdc04ea7c4cd0358f028bf7dfae2228eeb94/src/Message/AbstractMerchantAccountRequest.php#L84-L111
188,676
thephpleague/omnipay-braintree
src/Message/AbstractMerchantAccountRequest.php
AbstractMerchantAccountRequest.setFunding
public function setFunding($value) { if ($value && !$value instanceof MerchantFunding) { $value = new MerchantFunding($value); } return $this->setParameter('funding', $value); }
php
public function setFunding($value) { if ($value && !$value instanceof MerchantFunding) { $value = new MerchantFunding($value); } return $this->setParameter('funding', $value); }
[ "public", "function", "setFunding", "(", "$", "value", ")", "{", "if", "(", "$", "value", "&&", "!", "$", "value", "instanceof", "MerchantFunding", ")", "{", "$", "value", "=", "new", "MerchantFunding", "(", "$", "value", ")", ";", "}", "return", "$", ...
Sets the funding. @param MerchantFunding|array $value @return $this
[ "Sets", "the", "funding", "." ]
227ffdc04ea7c4cd0358f028bf7dfae2228eeb94
https://github.com/thephpleague/omnipay-braintree/blob/227ffdc04ea7c4cd0358f028bf7dfae2228eeb94/src/Message/AbstractMerchantAccountRequest.php#L119-L126
188,677
thephpleague/omnipay-braintree
src/Message/AbstractMerchantAccountRequest.php
AbstractMerchantAccountRequest.getIndividualData
public function getIndividualData() { $individual = $this->getIndividual(); if (!$individual) { return array(); } $data = array( 'address' => array( 'streetAddress' => $individual->getAddress1(), 'locality' => $individual->get...
php
public function getIndividualData() { $individual = $this->getIndividual(); if (!$individual) { return array(); } $data = array( 'address' => array( 'streetAddress' => $individual->getAddress1(), 'locality' => $individual->get...
[ "public", "function", "getIndividualData", "(", ")", "{", "$", "individual", "=", "$", "this", "->", "getIndividual", "(", ")", ";", "if", "(", "!", "$", "individual", ")", "{", "return", "array", "(", ")", ";", "}", "$", "data", "=", "array", "(", ...
Get the individual data. @return array
[ "Get", "the", "individual", "data", "." ]
227ffdc04ea7c4cd0358f028bf7dfae2228eeb94
https://github.com/thephpleague/omnipay-braintree/blob/227ffdc04ea7c4cd0358f028bf7dfae2228eeb94/src/Message/AbstractMerchantAccountRequest.php#L141-L174
188,678
thephpleague/omnipay-braintree
src/Message/AbstractMerchantAccountRequest.php
AbstractMerchantAccountRequest.setIndividual
public function setIndividual($value) { if ($value && !$value instanceof MerchantIndividual) { $value = new MerchantIndividual($value); } return $this->setParameter('individual', $value); }
php
public function setIndividual($value) { if ($value && !$value instanceof MerchantIndividual) { $value = new MerchantIndividual($value); } return $this->setParameter('individual', $value); }
[ "public", "function", "setIndividual", "(", "$", "value", ")", "{", "if", "(", "$", "value", "&&", "!", "$", "value", "instanceof", "MerchantIndividual", ")", "{", "$", "value", "=", "new", "MerchantIndividual", "(", "$", "value", ")", ";", "}", "return"...
Sets the individual. @param MerchantIndividual|array $value @return $this
[ "Sets", "the", "individual", "." ]
227ffdc04ea7c4cd0358f028bf7dfae2228eeb94
https://github.com/thephpleague/omnipay-braintree/blob/227ffdc04ea7c4cd0358f028bf7dfae2228eeb94/src/Message/AbstractMerchantAccountRequest.php#L182-L189
188,679
redound/phalcon-rest
src/PhalconRest/Api/ApiCollection.php
ApiCollection.factory
public static function factory($prefix, $name = null) { $calledClass = get_called_class(); /** @var \PhalconRest\Api\ApiCollection $collection */ $collection = new $calledClass($prefix); if ($name) { $collection->name($name); } return $collection; }
php
public static function factory($prefix, $name = null) { $calledClass = get_called_class(); /** @var \PhalconRest\Api\ApiCollection $collection */ $collection = new $calledClass($prefix); if ($name) { $collection->name($name); } return $collection; }
[ "public", "static", "function", "factory", "(", "$", "prefix", ",", "$", "name", "=", "null", ")", "{", "$", "calledClass", "=", "get_called_class", "(", ")", ";", "/** @var \\PhalconRest\\Api\\ApiCollection $collection */", "$", "collection", "=", "new", "$", "...
Returns collection with default values @param string $prefix Prefix for the collection (e.g. /auth) @param string $name Name for the collection (e.g. authentication) (optional) @return static
[ "Returns", "collection", "with", "default", "values" ]
fe3c417d60f87190d1f51e3d3e749d86e280eb56
https://github.com/redound/phalcon-rest/blob/fe3c417d60f87190d1f51e3d3e749d86e280eb56/src/PhalconRest/Api/ApiCollection.php#L49-L61
188,680
redound/phalcon-rest
src/PhalconRest/Api/ApiCollection.php
ApiCollection.endpoint
public function endpoint(ApiEndpoint $endpoint) { $this->endpointsByName[$endpoint->getName()] = $endpoint; switch ($endpoint->getHttpMethod()) { case HttpMethods::GET: $this->get($endpoint->getPath(), $endpoint->getHandlerMethod(), $this->createRouteName($endpoint)); ...
php
public function endpoint(ApiEndpoint $endpoint) { $this->endpointsByName[$endpoint->getName()] = $endpoint; switch ($endpoint->getHttpMethod()) { case HttpMethods::GET: $this->get($endpoint->getPath(), $endpoint->getHandlerMethod(), $this->createRouteName($endpoint)); ...
[ "public", "function", "endpoint", "(", "ApiEndpoint", "$", "endpoint", ")", "{", "$", "this", "->", "endpointsByName", "[", "$", "endpoint", "->", "getName", "(", ")", "]", "=", "$", "endpoint", ";", "switch", "(", "$", "endpoint", "->", "getHttpMethod", ...
Mounts endpoint to the collection @param \PhalconRest\Api\ApiEndpoint $endpoint Endpoint to mount @return static
[ "Mounts", "endpoint", "to", "the", "collection" ]
fe3c417d60f87190d1f51e3d3e749d86e280eb56
https://github.com/redound/phalcon-rest/blob/fe3c417d60f87190d1f51e3d3e749d86e280eb56/src/PhalconRest/Api/ApiCollection.php#L124-L152
188,681
redound/phalcon-rest
src/PhalconRest/Api/ApiCollection.php
ApiCollection.allow
public function allow() { $roleNames = func_get_args(); // Flatten array to allow array inputs $roleNames = Core::array_flatten($roleNames); foreach ($roleNames as $role) { if (!in_array($role, $this->allowedRoles)) { $this->allowedRoles[] = $role; ...
php
public function allow() { $roleNames = func_get_args(); // Flatten array to allow array inputs $roleNames = Core::array_flatten($roleNames); foreach ($roleNames as $role) { if (!in_array($role, $this->allowedRoles)) { $this->allowedRoles[] = $role; ...
[ "public", "function", "allow", "(", ")", "{", "$", "roleNames", "=", "func_get_args", "(", ")", ";", "// Flatten array to allow array inputs", "$", "roleNames", "=", "Core", "::", "array_flatten", "(", "$", "roleNames", ")", ";", "foreach", "(", "$", "roleName...
Allows access to this collection for role with the given names. This can be overwritten on the Endpoint level. @param ...array $roleNames Names of the roles to allow @return static
[ "Allows", "access", "to", "this", "collection", "for", "role", "with", "the", "given", "names", ".", "This", "can", "be", "overwritten", "on", "the", "Endpoint", "level", "." ]
fe3c417d60f87190d1f51e3d3e749d86e280eb56
https://github.com/redound/phalcon-rest/blob/fe3c417d60f87190d1f51e3d3e749d86e280eb56/src/PhalconRest/Api/ApiCollection.php#L236-L251
188,682
purekid/mongodm
src/ConnectionManager.php
ConnectionManager.connect
public function connect() { if ($this->_connection && $this->_connection->connect()) { return true; } /** * Add required variables * Clear the connection parameters for security */ $config = $this->_config['connection'] + array( ...
php
public function connect() { if ($this->_connection && $this->_connection->connect()) { return true; } /** * Add required variables * Clear the connection parameters for security */ $config = $this->_config['connection'] + array( ...
[ "public", "function", "connect", "(", ")", "{", "if", "(", "$", "this", "->", "_connection", "&&", "$", "this", "->", "_connection", "->", "connect", "(", ")", ")", "{", "return", "true", ";", "}", "/**\n * Add required variables\n * Clear the co...
Connect to MongoDB, select database @throws \Exception @return bool
[ "Connect", "to", "MongoDB", "select", "database" ]
108f2e4de5e14eb07c1e2b097a2233b62b33f672
https://github.com/purekid/mongodm/blob/108f2e4de5e14eb07c1e2b097a2233b62b33f672/src/ConnectionManager.php#L146-L206
188,683
purekid/mongodm
src/ConnectionManager.php
ConnectionManager.disconnect
public function disconnect() { if ($this->_connection) { try{ $this->_connection->close(); }catch(\Exception $e){ } } $this->_db = $this->_connection = null; }
php
public function disconnect() { if ($this->_connection) { try{ $this->_connection->close(); }catch(\Exception $e){ } } $this->_db = $this->_connection = null; }
[ "public", "function", "disconnect", "(", ")", "{", "if", "(", "$", "this", "->", "_connection", ")", "{", "try", "{", "$", "this", "->", "_connection", "->", "close", "(", ")", ";", "}", "catch", "(", "\\", "Exception", "$", "e", ")", "{", "}", "...
Disconnect from MongoDB @return null
[ "Disconnect", "from", "MongoDB" ]
108f2e4de5e14eb07c1e2b097a2233b62b33f672
https://github.com/purekid/mongodm/blob/108f2e4de5e14eb07c1e2b097a2233b62b33f672/src/ConnectionManager.php#L226-L238
188,684
larislackers/php-binance
src/Exception/BinanceApiException.php
BinanceApiException._decodeBinanceException
private function _decodeBinanceException($message) { $msg = json_decode($message, true); $this->code = isset($msg['code']) ? $msg['code'] : 0; $this->message = isset($msg['msg']) ? $msg['msg'] : ''; }
php
private function _decodeBinanceException($message) { $msg = json_decode($message, true); $this->code = isset($msg['code']) ? $msg['code'] : 0; $this->message = isset($msg['msg']) ? $msg['msg'] : ''; }
[ "private", "function", "_decodeBinanceException", "(", "$", "message", ")", "{", "$", "msg", "=", "json_decode", "(", "$", "message", ",", "true", ")", ";", "$", "this", "->", "code", "=", "isset", "(", "$", "msg", "[", "'code'", "]", ")", "?", "$", ...
Decodes received exception message. @param string $message The exception message.
[ "Decodes", "received", "exception", "message", "." ]
9fcd73f21526e2f999f815e88f78fff3d79b212f
https://github.com/larislackers/php-binance/blob/9fcd73f21526e2f999f815e88f78fff3d79b212f/src/Exception/BinanceApiException.php#L54-L59
188,685
redound/phalcon-rest
src/PhalconRest/Api/ApiEndpoint.php
ApiEndpoint.factory
public static function factory($path, $httpMethod = HttpMethods::GET, $handlerMethod = null) { return new ApiEndpoint($path, $httpMethod, $handlerMethod); }
php
public static function factory($path, $httpMethod = HttpMethods::GET, $handlerMethod = null) { return new ApiEndpoint($path, $httpMethod, $handlerMethod); }
[ "public", "static", "function", "factory", "(", "$", "path", ",", "$", "httpMethod", "=", "HttpMethods", "::", "GET", ",", "$", "handlerMethod", "=", "null", ")", "{", "return", "new", "ApiEndpoint", "(", "$", "path", ",", "$", "httpMethod", ",", "$", ...
Returns endpoint with default values @param string $path @param string $httpMethod @param string $handlerMethod @return static
[ "Returns", "endpoint", "with", "default", "values" ]
fe3c417d60f87190d1f51e3d3e749d86e280eb56
https://github.com/redound/phalcon-rest/blob/fe3c417d60f87190d1f51e3d3e749d86e280eb56/src/PhalconRest/Api/ApiEndpoint.php#L81-L84
188,686
redound/phalcon-rest
src/PhalconRest/Api/ApiEndpoint.php
ApiEndpoint.get
public static function get($path, $handlerMethod = null) { return self::factory($path, HttpMethods::GET, $handlerMethod); }
php
public static function get($path, $handlerMethod = null) { return self::factory($path, HttpMethods::GET, $handlerMethod); }
[ "public", "static", "function", "get", "(", "$", "path", ",", "$", "handlerMethod", "=", "null", ")", "{", "return", "self", "::", "factory", "(", "$", "path", ",", "HttpMethods", "::", "GET", ",", "$", "handlerMethod", ")", ";", "}" ]
Returns pre-configured GET endpoint @param $path @param string $handlerMethod @return ApiEndpoint
[ "Returns", "pre", "-", "configured", "GET", "endpoint" ]
fe3c417d60f87190d1f51e3d3e749d86e280eb56
https://github.com/redound/phalcon-rest/blob/fe3c417d60f87190d1f51e3d3e749d86e280eb56/src/PhalconRest/Api/ApiEndpoint.php#L142-L145
188,687
redound/phalcon-rest
src/PhalconRest/Api/ApiEndpoint.php
ApiEndpoint.post
public static function post($path, $handlerMethod = null) { return self::factory($path, HttpMethods::POST, $handlerMethod); }
php
public static function post($path, $handlerMethod = null) { return self::factory($path, HttpMethods::POST, $handlerMethod); }
[ "public", "static", "function", "post", "(", "$", "path", ",", "$", "handlerMethod", "=", "null", ")", "{", "return", "self", "::", "factory", "(", "$", "path", ",", "HttpMethods", "::", "POST", ",", "$", "handlerMethod", ")", ";", "}" ]
Returns pre-configured POST endpoint @param $path @param string $handlerMethod @return ApiEndpoint
[ "Returns", "pre", "-", "configured", "POST", "endpoint" ]
fe3c417d60f87190d1f51e3d3e749d86e280eb56
https://github.com/redound/phalcon-rest/blob/fe3c417d60f87190d1f51e3d3e749d86e280eb56/src/PhalconRest/Api/ApiEndpoint.php#L155-L158
188,688
redound/phalcon-rest
src/PhalconRest/Api/ApiEndpoint.php
ApiEndpoint.put
public static function put($path, $handlerMethod = null) { return self::factory($path, HttpMethods::PUT, $handlerMethod); }
php
public static function put($path, $handlerMethod = null) { return self::factory($path, HttpMethods::PUT, $handlerMethod); }
[ "public", "static", "function", "put", "(", "$", "path", ",", "$", "handlerMethod", "=", "null", ")", "{", "return", "self", "::", "factory", "(", "$", "path", ",", "HttpMethods", "::", "PUT", ",", "$", "handlerMethod", ")", ";", "}" ]
Returns pre-configured PUT endpoint @param $path @param string $handlerMethod @return ApiEndpoint
[ "Returns", "pre", "-", "configured", "PUT", "endpoint" ]
fe3c417d60f87190d1f51e3d3e749d86e280eb56
https://github.com/redound/phalcon-rest/blob/fe3c417d60f87190d1f51e3d3e749d86e280eb56/src/PhalconRest/Api/ApiEndpoint.php#L168-L171
188,689
redound/phalcon-rest
src/PhalconRest/Api/ApiEndpoint.php
ApiEndpoint.delete
public static function delete($path, $handlerMethod = null) { return self::factory($path, HttpMethods::DELETE, $handlerMethod); }
php
public static function delete($path, $handlerMethod = null) { return self::factory($path, HttpMethods::DELETE, $handlerMethod); }
[ "public", "static", "function", "delete", "(", "$", "path", ",", "$", "handlerMethod", "=", "null", ")", "{", "return", "self", "::", "factory", "(", "$", "path", ",", "HttpMethods", "::", "DELETE", ",", "$", "handlerMethod", ")", ";", "}" ]
Returns pre-configured DELETE endpoint @param $path @param string $handlerMethod @return ApiEndpoint
[ "Returns", "pre", "-", "configured", "DELETE", "endpoint" ]
fe3c417d60f87190d1f51e3d3e749d86e280eb56
https://github.com/redound/phalcon-rest/blob/fe3c417d60f87190d1f51e3d3e749d86e280eb56/src/PhalconRest/Api/ApiEndpoint.php#L181-L184
188,690
redound/phalcon-rest
src/PhalconRest/Api/ApiEndpoint.php
ApiEndpoint.head
public static function head($path, $handlerMethod = null) { return self::factory($path, HttpMethods::HEAD, $handlerMethod); }
php
public static function head($path, $handlerMethod = null) { return self::factory($path, HttpMethods::HEAD, $handlerMethod); }
[ "public", "static", "function", "head", "(", "$", "path", ",", "$", "handlerMethod", "=", "null", ")", "{", "return", "self", "::", "factory", "(", "$", "path", ",", "HttpMethods", "::", "HEAD", ",", "$", "handlerMethod", ")", ";", "}" ]
Returns pre-configured HEAD endpoint @param $path @param string $handlerMethod @return ApiEndpoint
[ "Returns", "pre", "-", "configured", "HEAD", "endpoint" ]
fe3c417d60f87190d1f51e3d3e749d86e280eb56
https://github.com/redound/phalcon-rest/blob/fe3c417d60f87190d1f51e3d3e749d86e280eb56/src/PhalconRest/Api/ApiEndpoint.php#L194-L197
188,691
redound/phalcon-rest
src/PhalconRest/Api/ApiEndpoint.php
ApiEndpoint.options
public static function options($path, $handlerMethod = null) { return self::factory($path, HttpMethods::OPTIONS, $handlerMethod); }
php
public static function options($path, $handlerMethod = null) { return self::factory($path, HttpMethods::OPTIONS, $handlerMethod); }
[ "public", "static", "function", "options", "(", "$", "path", ",", "$", "handlerMethod", "=", "null", ")", "{", "return", "self", "::", "factory", "(", "$", "path", ",", "HttpMethods", "::", "OPTIONS", ",", "$", "handlerMethod", ")", ";", "}" ]
Returns pre-configured OPTIONS endpoint @param $path @param string $handlerMethod @return ApiEndpoint
[ "Returns", "pre", "-", "configured", "OPTIONS", "endpoint" ]
fe3c417d60f87190d1f51e3d3e749d86e280eb56
https://github.com/redound/phalcon-rest/blob/fe3c417d60f87190d1f51e3d3e749d86e280eb56/src/PhalconRest/Api/ApiEndpoint.php#L207-L210
188,692
redound/phalcon-rest
src/PhalconRest/Api/ApiEndpoint.php
ApiEndpoint.patch
public static function patch($path, $handlerMethod = null) { return self::factory($path, HttpMethods::PATCH, $handlerMethod); }
php
public static function patch($path, $handlerMethod = null) { return self::factory($path, HttpMethods::PATCH, $handlerMethod); }
[ "public", "static", "function", "patch", "(", "$", "path", ",", "$", "handlerMethod", "=", "null", ")", "{", "return", "self", "::", "factory", "(", "$", "path", ",", "HttpMethods", "::", "PATCH", ",", "$", "handlerMethod", ")", ";", "}" ]
Returns pre-configured PATCH endpoint @param $path @param string $handlerMethod @return ApiEndpoint
[ "Returns", "pre", "-", "configured", "PATCH", "endpoint" ]
fe3c417d60f87190d1f51e3d3e749d86e280eb56
https://github.com/redound/phalcon-rest/blob/fe3c417d60f87190d1f51e3d3e749d86e280eb56/src/PhalconRest/Api/ApiEndpoint.php#L220-L223
188,693
purekid/mongodm
src/Collection.php
Collection.get
public function get($index = 0) { if (is_int($index)) { if ($index + 1 > $this->count()) { return null; } else { return current(array_slice($this->_items, $index, 1)); } } else { if ($index instanceof \MongoId) { ...
php
public function get($index = 0) { if (is_int($index)) { if ($index + 1 > $this->count()) { return null; } else { return current(array_slice($this->_items, $index, 1)); } } else { if ($index instanceof \MongoId) { ...
[ "public", "function", "get", "(", "$", "index", "=", "0", ")", "{", "if", "(", "is_int", "(", "$", "index", ")", ")", "{", "if", "(", "$", "index", "+", "1", ">", "$", "this", "->", "count", "(", ")", ")", "{", "return", "null", ";", "}", "...
Get item by numeric index or MongoId @param int $index model to get @return \Purekid\Mongodm\Model
[ "Get", "item", "by", "numeric", "index", "or", "MongoId" ]
108f2e4de5e14eb07c1e2b097a2233b62b33f672
https://github.com/purekid/mongodm/blob/108f2e4de5e14eb07c1e2b097a2233b62b33f672/src/Collection.php#L95-L116
188,694
purekid/mongodm
src/Collection.php
Collection.map
public function map(\Closure $callback) { $this->_items = array_map($callback, $this->_items); return $this; }
php
public function map(\Closure $callback) { $this->_items = array_map($callback, $this->_items); return $this; }
[ "public", "function", "map", "(", "\\", "Closure", "$", "callback", ")", "{", "$", "this", "->", "_items", "=", "array_map", "(", "$", "callback", ",", "$", "this", "->", "_items", ")", ";", "return", "$", "this", ";", "}" ]
Run a map over the collection using the given Closure @param \Closure $callback callback @return \Purekid\Mongodm\Collection
[ "Run", "a", "map", "over", "the", "collection", "using", "the", "given", "Closure" ]
108f2e4de5e14eb07c1e2b097a2233b62b33f672
https://github.com/purekid/mongodm/blob/108f2e4de5e14eb07c1e2b097a2233b62b33f672/src/Collection.php#L212-L218
188,695
purekid/mongodm
src/Collection.php
Collection.makeRef
public function makeRef() { $data = array(); foreach ($this->_items as $item) { $data[] = $item->makeRef(); } return $data; }
php
public function makeRef() { $data = array(); foreach ($this->_items as $item) { $data[] = $item->makeRef(); } return $data; }
[ "public", "function", "makeRef", "(", ")", "{", "$", "data", "=", "array", "(", ")", ";", "foreach", "(", "$", "this", "->", "_items", "as", "$", "item", ")", "{", "$", "data", "[", "]", "=", "$", "item", "->", "makeRef", "(", ")", ";", "}", ...
make a MongoRefs array of items @return \MongoDbRef[]
[ "make", "a", "MongoRefs", "array", "of", "items" ]
108f2e4de5e14eb07c1e2b097a2233b62b33f672
https://github.com/purekid/mongodm/blob/108f2e4de5e14eb07c1e2b097a2233b62b33f672/src/Collection.php#L398-L406
188,696
larislackers/php-binance
src/BinanceApiContainer.php
BinanceApiContainer._makeApiRequest
protected function _makeApiRequest($type, $endPoint, $securityType = 'NONE', $params = []) { $params = array_filter($params, 'strlen'); switch (strtoupper($securityType)) { default: case 'NONE': $client = new Client(['http_errors' => false]); ...
php
protected function _makeApiRequest($type, $endPoint, $securityType = 'NONE', $params = []) { $params = array_filter($params, 'strlen'); switch (strtoupper($securityType)) { default: case 'NONE': $client = new Client(['http_errors' => false]); ...
[ "protected", "function", "_makeApiRequest", "(", "$", "type", ",", "$", "endPoint", ",", "$", "securityType", "=", "'NONE'", ",", "$", "params", "=", "[", "]", ")", "{", "$", "params", "=", "array_filter", "(", "$", "params", ",", "'strlen'", ")", ";",...
Does an HTTP request to the given endpoint with the given parameters. @param string $type The HTTP method. @param string $endPoint The API endpoint. @param string $securityType Security type enum. @param array $params Additional parameters. @return \Psr\Http\Message\ResponseInterface @throws Binanc...
[ "Does", "an", "HTTP", "request", "to", "the", "given", "endpoint", "with", "the", "given", "parameters", "." ]
9fcd73f21526e2f999f815e88f78fff3d79b212f
https://github.com/larislackers/php-binance/blob/9fcd73f21526e2f999f815e88f78fff3d79b212f/src/BinanceApiContainer.php#L523-L572
188,697
larislackers/php-binance
src/BinanceApiContainer.php
BinanceApiContainer._makeWebsocketRequest
protected function _makeWebsocketRequest($type, $params, $once = false) { switch (strtoupper($type)) { default: case 'DEPTH': $url = ConnectionDetails::WEBSOCKET_URL . strtolower($params['symbol']) . '@depth'; break; case 'KLINE': ...
php
protected function _makeWebsocketRequest($type, $params, $once = false) { switch (strtoupper($type)) { default: case 'DEPTH': $url = ConnectionDetails::WEBSOCKET_URL . strtolower($params['symbol']) . '@depth'; break; case 'KLINE': ...
[ "protected", "function", "_makeWebsocketRequest", "(", "$", "type", ",", "$", "params", ",", "$", "once", "=", "false", ")", "{", "switch", "(", "strtoupper", "(", "$", "type", ")", ")", "{", "default", ":", "case", "'DEPTH'", ":", "$", "url", "=", "...
Opens a websocket connection and transmits received messages until closed. @param string $type The websocket method. @param array $params The parameters to send. @param bool $once If true, it will close the connection after the first successful message. @return void @throws LarislackersException
[ "Opens", "a", "websocket", "connection", "and", "transmits", "received", "messages", "until", "closed", "." ]
9fcd73f21526e2f999f815e88f78fff3d79b212f
https://github.com/larislackers/php-binance/blob/9fcd73f21526e2f999f815e88f78fff3d79b212f/src/BinanceApiContainer.php#L584-L616
188,698
purekid/mongodm
src/Model.php
Model.update
public function update(array $cleanData, $isInit = false) { if ($isInit) { $attrs = $this->getAttrs(); foreach ($cleanData as $key => $value) { if (($value instanceof Model) && isset($attrs[$key]) && isset($attrs[$key]['type']) && ( $attrs[$key]['t...
php
public function update(array $cleanData, $isInit = false) { if ($isInit) { $attrs = $this->getAttrs(); foreach ($cleanData as $key => $value) { if (($value instanceof Model) && isset($attrs[$key]) && isset($attrs[$key]['type']) && ( $attrs[$key]['t...
[ "public", "function", "update", "(", "array", "$", "cleanData", ",", "$", "isInit", "=", "false", ")", "{", "if", "(", "$", "isInit", ")", "{", "$", "attrs", "=", "$", "this", "->", "getAttrs", "(", ")", ";", "foreach", "(", "$", "cleanData", "as",...
Update data by a array @param array $cleanData clean data @param bool $isInit is init @return boolean
[ "Update", "data", "by", "a", "array" ]
108f2e4de5e14eb07c1e2b097a2233b62b33f672
https://github.com/purekid/mongodm/blob/108f2e4de5e14eb07c1e2b097a2233b62b33f672/src/Model.php#L165-L184
188,699
purekid/mongodm
src/Model.php
Model.mutate
public function mutate($updateQuery, $options = array()) { if(!is_array($updateQuery)) throw new \Exception('$updateQuery should be an array'); if(!is_array($options)) throw new \Exception('$options should be an array'); $default = array( 'w' => 1 ); $options = a...
php
public function mutate($updateQuery, $options = array()) { if(!is_array($updateQuery)) throw new \Exception('$updateQuery should be an array'); if(!is_array($options)) throw new \Exception('$options should be an array'); $default = array( 'w' => 1 ); $options = a...
[ "public", "function", "mutate", "(", "$", "updateQuery", ",", "$", "options", "=", "array", "(", ")", ")", "{", "if", "(", "!", "is_array", "(", "$", "updateQuery", ")", ")", "throw", "new", "\\", "Exception", "(", "'$updateQuery should be an array'", ")",...
Mutate data by direct query @param array $updateQuery update query @param array $options options @throws \Exception @return boolean
[ "Mutate", "data", "by", "direct", "query" ]
108f2e4de5e14eb07c1e2b097a2233b62b33f672
https://github.com/purekid/mongodm/blob/108f2e4de5e14eb07c1e2b097a2233b62b33f672/src/Model.php#L195-L212