code
stringlengths 17
247k
| docstring
stringlengths 30
30.3k
| func_name
stringlengths 1
89
| language
stringclasses 1
value | repo
stringlengths 7
63
| path
stringlengths 7
153
| url
stringlengths 51
209
| license
stringclasses 4
values |
---|---|---|---|---|---|---|---|
public function addToInvoiceReferencedDocument(\horstoeko\zugferd\entities\basicwl\ram\ReferencedDocumentType $invoiceReferencedDocument)
{
$this->invoiceReferencedDocument[] = $invoiceReferencedDocument;
return $this;
} | Adds as invoiceReferencedDocument
@return self
@param \horstoeko\zugferd\entities\basicwl\ram\ReferencedDocumentType $invoiceReferencedDocument | addToInvoiceReferencedDocument | php | horstoeko/zugferd | src/entities/basicwl/ram/HeaderTradeSettlementType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basicwl/ram/HeaderTradeSettlementType.php | MIT |
public function setReceivableSpecifiedTradeAccountingAccount(?\horstoeko\zugferd\entities\basicwl\ram\TradeAccountingAccountType $receivableSpecifiedTradeAccountingAccount = null)
{
$this->receivableSpecifiedTradeAccountingAccount = $receivableSpecifiedTradeAccountingAccount;
return $this;
} | Sets a new receivableSpecifiedTradeAccountingAccount
@param \horstoeko\zugferd\entities\basicwl\ram\TradeAccountingAccountType $receivableSpecifiedTradeAccountingAccount
@return self | setReceivableSpecifiedTradeAccountingAccount | php | horstoeko/zugferd | src/entities/basicwl/ram/HeaderTradeSettlementType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basicwl/ram/HeaderTradeSettlementType.php | MIT |
public function setSellerTaxRepresentativeTradeParty(?\horstoeko\zugferd\entities\basicwl\ram\TradePartyType $sellerTaxRepresentativeTradeParty = null)
{
$this->sellerTaxRepresentativeTradeParty = $sellerTaxRepresentativeTradeParty;
return $this;
} | Sets a new sellerTaxRepresentativeTradeParty
@param \horstoeko\zugferd\entities\basicwl\ram\TradePartyType $sellerTaxRepresentativeTradeParty
@return self | setSellerTaxRepresentativeTradeParty | php | horstoeko/zugferd | src/entities/basicwl/ram/HeaderTradeAgreementType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basicwl/ram/HeaderTradeAgreementType.php | MIT |
public function setBuyerOrderReferencedDocument(?\horstoeko\zugferd\entities\basicwl\ram\ReferencedDocumentType $buyerOrderReferencedDocument = null)
{
$this->buyerOrderReferencedDocument = $buyerOrderReferencedDocument;
return $this;
} | Sets a new buyerOrderReferencedDocument
@param \horstoeko\zugferd\entities\basicwl\ram\ReferencedDocumentType $buyerOrderReferencedDocument
@return self | setBuyerOrderReferencedDocument | php | horstoeko/zugferd | src/entities/basicwl/ram/HeaderTradeAgreementType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basicwl/ram/HeaderTradeAgreementType.php | MIT |
public function setContractReferencedDocument(?\horstoeko\zugferd\entities\basicwl\ram\ReferencedDocumentType $contractReferencedDocument = null)
{
$this->contractReferencedDocument = $contractReferencedDocument;
return $this;
} | Sets a new contractReferencedDocument
@param \horstoeko\zugferd\entities\basicwl\ram\ReferencedDocumentType $contractReferencedDocument
@return self | setContractReferencedDocument | php | horstoeko/zugferd | src/entities/basicwl/ram/HeaderTradeAgreementType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basicwl/ram/HeaderTradeAgreementType.php | MIT |
public function setSpecifiedLegalOrganization(?\horstoeko\zugferd\entities\basicwl\ram\LegalOrganizationType $specifiedLegalOrganization = null)
{
$this->specifiedLegalOrganization = $specifiedLegalOrganization;
return $this;
} | Sets a new specifiedLegalOrganization
@param \horstoeko\zugferd\entities\basicwl\ram\LegalOrganizationType $specifiedLegalOrganization
@return self | setSpecifiedLegalOrganization | php | horstoeko/zugferd | src/entities/basicwl/ram/TradePartyType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basicwl/ram/TradePartyType.php | MIT |
public function setURIUniversalCommunication(?\horstoeko\zugferd\entities\basicwl\ram\UniversalCommunicationType $uRIUniversalCommunication = null)
{
$this->uRIUniversalCommunication = $uRIUniversalCommunication;
return $this;
} | Sets a new uRIUniversalCommunication
@param \horstoeko\zugferd\entities\basicwl\ram\UniversalCommunicationType $uRIUniversalCommunication
@return self | setURIUniversalCommunication | php | horstoeko/zugferd | src/entities/basicwl/ram/TradePartyType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basicwl/ram/TradePartyType.php | MIT |
public function addToSpecifiedTaxRegistration(\horstoeko\zugferd\entities\basicwl\ram\TaxRegistrationType $specifiedTaxRegistration)
{
$this->specifiedTaxRegistration[] = $specifiedTaxRegistration;
return $this;
} | Adds as specifiedTaxRegistration
@return self
@param \horstoeko\zugferd\entities\basicwl\ram\TaxRegistrationType $specifiedTaxRegistration | addToSpecifiedTaxRegistration | php | horstoeko/zugferd | src/entities/basicwl/ram/TradePartyType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basicwl/ram/TradePartyType.php | MIT |
public function setDirectDebitMandateID(?\horstoeko\zugferd\entities\basicwl\udt\IDType $directDebitMandateID = null)
{
$this->directDebitMandateID = $directDebitMandateID;
return $this;
} | Sets a new directDebitMandateID
@param \horstoeko\zugferd\entities\basicwl\udt\IDType $directDebitMandateID
@return self | setDirectDebitMandateID | php | horstoeko/zugferd | src/entities/basicwl/ram/TradePaymentTermsType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basicwl/ram/TradePaymentTermsType.php | MIT |
public function setFormattedIssueDateTime(?\horstoeko\zugferd\entities\basicwl\qdt\FormattedDateTimeType $formattedIssueDateTime = null)
{
$this->formattedIssueDateTime = $formattedIssueDateTime;
return $this;
} | Sets a new formattedIssueDateTime
@param \horstoeko\zugferd\entities\basicwl\qdt\FormattedDateTimeType $formattedIssueDateTime
@return self | setFormattedIssueDateTime | php | horstoeko/zugferd | src/entities/basicwl/ram/ReferencedDocumentType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basicwl/ram/ReferencedDocumentType.php | MIT |
public function setExemptionReasonCode($exemptionReasonCode)
{
$this->exemptionReasonCode = $exemptionReasonCode;
return $this;
} | Sets a new exemptionReasonCode
@param string $exemptionReasonCode
@return self | setExemptionReasonCode | php | horstoeko/zugferd | src/entities/basicwl/ram/TradeTaxType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basicwl/ram/TradeTaxType.php | MIT |
public function setPayerPartyDebtorFinancialAccount(?\horstoeko\zugferd\entities\basicwl\ram\DebtorFinancialAccountType $payerPartyDebtorFinancialAccount = null)
{
$this->payerPartyDebtorFinancialAccount = $payerPartyDebtorFinancialAccount;
return $this;
} | Sets a new payerPartyDebtorFinancialAccount
@param \horstoeko\zugferd\entities\basicwl\ram\DebtorFinancialAccountType $payerPartyDebtorFinancialAccount
@return self | setPayerPartyDebtorFinancialAccount | php | horstoeko/zugferd | src/entities/basicwl/ram/TradeSettlementPaymentMeansType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basicwl/ram/TradeSettlementPaymentMeansType.php | MIT |
public function setPayeePartyCreditorFinancialAccount(?\horstoeko\zugferd\entities\basicwl\ram\CreditorFinancialAccountType $payeePartyCreditorFinancialAccount = null)
{
$this->payeePartyCreditorFinancialAccount = $payeePartyCreditorFinancialAccount;
return $this;
} | Sets a new payeePartyCreditorFinancialAccount
@param \horstoeko\zugferd\entities\basicwl\ram\CreditorFinancialAccountType $payeePartyCreditorFinancialAccount
@return self | setPayeePartyCreditorFinancialAccount | php | horstoeko/zugferd | src/entities/basicwl/ram/TradeSettlementPaymentMeansType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basicwl/ram/TradeSettlementPaymentMeansType.php | MIT |
public function setBusinessProcessSpecifiedDocumentContextParameter(?\horstoeko\zugferd\entities\basicwl\ram\DocumentContextParameterType $businessProcessSpecifiedDocumentContextParameter = null)
{
$this->businessProcessSpecifiedDocumentContextParameter = $businessProcessSpecifiedDocumentContextParameter;
return $this;
} | Sets a new businessProcessSpecifiedDocumentContextParameter
@param \horstoeko\zugferd\entities\basicwl\ram\DocumentContextParameterType $businessProcessSpecifiedDocumentContextParameter
@return self | setBusinessProcessSpecifiedDocumentContextParameter | php | horstoeko/zugferd | src/entities/basicwl/ram/ExchangedDocumentContextType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basicwl/ram/ExchangedDocumentContextType.php | MIT |
public function setGuidelineSpecifiedDocumentContextParameter(\horstoeko\zugferd\entities\basicwl\ram\DocumentContextParameterType $guidelineSpecifiedDocumentContextParameter)
{
$this->guidelineSpecifiedDocumentContextParameter = $guidelineSpecifiedDocumentContextParameter;
return $this;
} | Sets a new guidelineSpecifiedDocumentContextParameter
@param \horstoeko\zugferd\entities\basicwl\ram\DocumentContextParameterType $guidelineSpecifiedDocumentContextParameter
@return self | setGuidelineSpecifiedDocumentContextParameter | php | horstoeko/zugferd | src/entities/basicwl/ram/ExchangedDocumentContextType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basicwl/ram/ExchangedDocumentContextType.php | MIT |
public function setExchangedDocumentContext(\horstoeko\zugferd\entities\basicwl\ram\ExchangedDocumentContextType $exchangedDocumentContext)
{
$this->exchangedDocumentContext = $exchangedDocumentContext;
return $this;
} | Sets a new exchangedDocumentContext
@param \horstoeko\zugferd\entities\basicwl\ram\ExchangedDocumentContextType $exchangedDocumentContext
@return self | setExchangedDocumentContext | php | horstoeko/zugferd | src/entities/basicwl/rsm/CrossIndustryInvoiceType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basicwl/rsm/CrossIndustryInvoiceType.php | MIT |
public function setSupplyChainTradeTransaction(\horstoeko\zugferd\entities\basicwl\ram\SupplyChainTradeTransactionType $supplyChainTradeTransaction)
{
$this->supplyChainTradeTransaction = $supplyChainTradeTransaction;
return $this;
} | Sets a new supplyChainTradeTransaction
@param \horstoeko\zugferd\entities\basicwl\ram\SupplyChainTradeTransactionType $supplyChainTradeTransaction
@return self | setSupplyChainTradeTransaction | php | horstoeko/zugferd | src/entities/basicwl/rsm/CrossIndustryInvoiceType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basicwl/rsm/CrossIndustryInvoiceType.php | MIT |
public function addToIncludedSupplyChainTradeLineItem(\horstoeko\zugferd\entities\basic\ram\SupplyChainTradeLineItemType $includedSupplyChainTradeLineItem)
{
$this->includedSupplyChainTradeLineItem[] = $includedSupplyChainTradeLineItem;
return $this;
} | Adds as includedSupplyChainTradeLineItem
@return self
@param \horstoeko\zugferd\entities\basic\ram\SupplyChainTradeLineItemType $includedSupplyChainTradeLineItem | addToIncludedSupplyChainTradeLineItem | php | horstoeko/zugferd | src/entities/basic/ram/SupplyChainTradeTransactionType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/ram/SupplyChainTradeTransactionType.php | MIT |
public function setApplicableHeaderTradeAgreement(\horstoeko\zugferd\entities\basic\ram\HeaderTradeAgreementType $applicableHeaderTradeAgreement)
{
$this->applicableHeaderTradeAgreement = $applicableHeaderTradeAgreement;
return $this;
} | Sets a new applicableHeaderTradeAgreement
@param \horstoeko\zugferd\entities\basic\ram\HeaderTradeAgreementType $applicableHeaderTradeAgreement
@return self | setApplicableHeaderTradeAgreement | php | horstoeko/zugferd | src/entities/basic/ram/SupplyChainTradeTransactionType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/ram/SupplyChainTradeTransactionType.php | MIT |
public function setApplicableHeaderTradeDelivery(\horstoeko\zugferd\entities\basic\ram\HeaderTradeDeliveryType $applicableHeaderTradeDelivery)
{
$this->applicableHeaderTradeDelivery = $applicableHeaderTradeDelivery;
return $this;
} | Sets a new applicableHeaderTradeDelivery
@param \horstoeko\zugferd\entities\basic\ram\HeaderTradeDeliveryType $applicableHeaderTradeDelivery
@return self | setApplicableHeaderTradeDelivery | php | horstoeko/zugferd | src/entities/basic/ram/SupplyChainTradeTransactionType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/ram/SupplyChainTradeTransactionType.php | MIT |
public function setApplicableHeaderTradeSettlement(\horstoeko\zugferd\entities\basic\ram\HeaderTradeSettlementType $applicableHeaderTradeSettlement)
{
$this->applicableHeaderTradeSettlement = $applicableHeaderTradeSettlement;
return $this;
} | Sets a new applicableHeaderTradeSettlement
@param \horstoeko\zugferd\entities\basic\ram\HeaderTradeSettlementType $applicableHeaderTradeSettlement
@return self | setApplicableHeaderTradeSettlement | php | horstoeko/zugferd | src/entities/basic/ram/SupplyChainTradeTransactionType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/ram/SupplyChainTradeTransactionType.php | MIT |
public function setAssociatedDocumentLineDocument(\horstoeko\zugferd\entities\basic\ram\DocumentLineDocumentType $associatedDocumentLineDocument)
{
$this->associatedDocumentLineDocument = $associatedDocumentLineDocument;
return $this;
} | Sets a new associatedDocumentLineDocument
@param \horstoeko\zugferd\entities\basic\ram\DocumentLineDocumentType $associatedDocumentLineDocument
@return self | setAssociatedDocumentLineDocument | php | horstoeko/zugferd | src/entities/basic/ram/SupplyChainTradeLineItemType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/ram/SupplyChainTradeLineItemType.php | MIT |
public function setSpecifiedTradeProduct(\horstoeko\zugferd\entities\basic\ram\TradeProductType $specifiedTradeProduct)
{
$this->specifiedTradeProduct = $specifiedTradeProduct;
return $this;
} | Sets a new specifiedTradeProduct
@param \horstoeko\zugferd\entities\basic\ram\TradeProductType $specifiedTradeProduct
@return self | setSpecifiedTradeProduct | php | horstoeko/zugferd | src/entities/basic/ram/SupplyChainTradeLineItemType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/ram/SupplyChainTradeLineItemType.php | MIT |
public function setSpecifiedLineTradeAgreement(\horstoeko\zugferd\entities\basic\ram\LineTradeAgreementType $specifiedLineTradeAgreement)
{
$this->specifiedLineTradeAgreement = $specifiedLineTradeAgreement;
return $this;
} | Sets a new specifiedLineTradeAgreement
@param \horstoeko\zugferd\entities\basic\ram\LineTradeAgreementType $specifiedLineTradeAgreement
@return self | setSpecifiedLineTradeAgreement | php | horstoeko/zugferd | src/entities/basic/ram/SupplyChainTradeLineItemType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/ram/SupplyChainTradeLineItemType.php | MIT |
public function setSpecifiedLineTradeDelivery(\horstoeko\zugferd\entities\basic\ram\LineTradeDeliveryType $specifiedLineTradeDelivery)
{
$this->specifiedLineTradeDelivery = $specifiedLineTradeDelivery;
return $this;
} | Sets a new specifiedLineTradeDelivery
@param \horstoeko\zugferd\entities\basic\ram\LineTradeDeliveryType $specifiedLineTradeDelivery
@return self | setSpecifiedLineTradeDelivery | php | horstoeko/zugferd | src/entities/basic/ram/SupplyChainTradeLineItemType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/ram/SupplyChainTradeLineItemType.php | MIT |
public function setSpecifiedLineTradeSettlement(\horstoeko\zugferd\entities\basic\ram\LineTradeSettlementType $specifiedLineTradeSettlement)
{
$this->specifiedLineTradeSettlement = $specifiedLineTradeSettlement;
return $this;
} | Sets a new specifiedLineTradeSettlement
@param \horstoeko\zugferd\entities\basic\ram\LineTradeSettlementType $specifiedLineTradeSettlement
@return self | setSpecifiedLineTradeSettlement | php | horstoeko/zugferd | src/entities/basic/ram/SupplyChainTradeLineItemType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/ram/SupplyChainTradeLineItemType.php | MIT |
public function setAllowanceTotalAmount(?\horstoeko\zugferd\entities\basic\udt\AmountType $allowanceTotalAmount = null)
{
$this->allowanceTotalAmount = $allowanceTotalAmount;
return $this;
} | Sets a new allowanceTotalAmount
@param \horstoeko\zugferd\entities\basic\udt\AmountType $allowanceTotalAmount
@return self | setAllowanceTotalAmount | php | horstoeko/zugferd | src/entities/basic/ram/TradeSettlementHeaderMonetarySummationType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/ram/TradeSettlementHeaderMonetarySummationType.php | MIT |
public function setTaxBasisTotalAmount(\horstoeko\zugferd\entities\basic\udt\AmountType $taxBasisTotalAmount)
{
$this->taxBasisTotalAmount = $taxBasisTotalAmount;
return $this;
} | Sets a new taxBasisTotalAmount
@param \horstoeko\zugferd\entities\basic\udt\AmountType $taxBasisTotalAmount
@return self | setTaxBasisTotalAmount | php | horstoeko/zugferd | src/entities/basic/ram/TradeSettlementHeaderMonetarySummationType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/ram/TradeSettlementHeaderMonetarySummationType.php | MIT |
public function setActualDeliverySupplyChainEvent(?\horstoeko\zugferd\entities\basic\ram\SupplyChainEventType $actualDeliverySupplyChainEvent = null)
{
$this->actualDeliverySupplyChainEvent = $actualDeliverySupplyChainEvent;
return $this;
} | Sets a new actualDeliverySupplyChainEvent
@param \horstoeko\zugferd\entities\basic\ram\SupplyChainEventType $actualDeliverySupplyChainEvent
@return self | setActualDeliverySupplyChainEvent | php | horstoeko/zugferd | src/entities/basic/ram/HeaderTradeDeliveryType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/ram/HeaderTradeDeliveryType.php | MIT |
public function setDespatchAdviceReferencedDocument(?\horstoeko\zugferd\entities\basic\ram\ReferencedDocumentType $despatchAdviceReferencedDocument = null)
{
$this->despatchAdviceReferencedDocument = $despatchAdviceReferencedDocument;
return $this;
} | Sets a new despatchAdviceReferencedDocument
@param \horstoeko\zugferd\entities\basic\ram\ReferencedDocumentType $despatchAdviceReferencedDocument
@return self | setDespatchAdviceReferencedDocument | php | horstoeko/zugferd | src/entities/basic/ram/HeaderTradeDeliveryType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/ram/HeaderTradeDeliveryType.php | MIT |
public function setGrossPriceProductTradePrice(?\horstoeko\zugferd\entities\basic\ram\TradePriceType $grossPriceProductTradePrice = null)
{
$this->grossPriceProductTradePrice = $grossPriceProductTradePrice;
return $this;
} | Sets a new grossPriceProductTradePrice
@param \horstoeko\zugferd\entities\basic\ram\TradePriceType $grossPriceProductTradePrice
@return self | setGrossPriceProductTradePrice | php | horstoeko/zugferd | src/entities/basic/ram/LineTradeAgreementType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/ram/LineTradeAgreementType.php | MIT |
public function setNetPriceProductTradePrice(\horstoeko\zugferd\entities\basic\ram\TradePriceType $netPriceProductTradePrice)
{
$this->netPriceProductTradePrice = $netPriceProductTradePrice;
return $this;
} | Sets a new netPriceProductTradePrice
@param \horstoeko\zugferd\entities\basic\ram\TradePriceType $netPriceProductTradePrice
@return self | setNetPriceProductTradePrice | php | horstoeko/zugferd | src/entities/basic/ram/LineTradeAgreementType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/ram/LineTradeAgreementType.php | MIT |
public function setCreditorReferenceID(?\horstoeko\zugferd\entities\basic\udt\IDType $creditorReferenceID = null)
{
$this->creditorReferenceID = $creditorReferenceID;
return $this;
} | Sets a new creditorReferenceID
@param \horstoeko\zugferd\entities\basic\udt\IDType $creditorReferenceID
@return self | setCreditorReferenceID | php | horstoeko/zugferd | src/entities/basic/ram/HeaderTradeSettlementType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/ram/HeaderTradeSettlementType.php | MIT |
public function addToSpecifiedTradeSettlementPaymentMeans(\horstoeko\zugferd\entities\basic\ram\TradeSettlementPaymentMeansType $specifiedTradeSettlementPaymentMeans)
{
$this->specifiedTradeSettlementPaymentMeans[] = $specifiedTradeSettlementPaymentMeans;
return $this;
} | Adds as specifiedTradeSettlementPaymentMeans
@return self
@param \horstoeko\zugferd\entities\basic\ram\TradeSettlementPaymentMeansType $specifiedTradeSettlementPaymentMeans | addToSpecifiedTradeSettlementPaymentMeans | php | horstoeko/zugferd | src/entities/basic/ram/HeaderTradeSettlementType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/ram/HeaderTradeSettlementType.php | MIT |
public function setBillingSpecifiedPeriod(?\horstoeko\zugferd\entities\basic\ram\SpecifiedPeriodType $billingSpecifiedPeriod = null)
{
$this->billingSpecifiedPeriod = $billingSpecifiedPeriod;
return $this;
} | Sets a new billingSpecifiedPeriod
@param \horstoeko\zugferd\entities\basic\ram\SpecifiedPeriodType $billingSpecifiedPeriod
@return self | setBillingSpecifiedPeriod | php | horstoeko/zugferd | src/entities/basic/ram/HeaderTradeSettlementType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/ram/HeaderTradeSettlementType.php | MIT |
public function addToSpecifiedTradeAllowanceCharge(\horstoeko\zugferd\entities\basic\ram\TradeAllowanceChargeType $specifiedTradeAllowanceCharge)
{
$this->specifiedTradeAllowanceCharge[] = $specifiedTradeAllowanceCharge;
return $this;
} | Adds as specifiedTradeAllowanceCharge
@return self
@param \horstoeko\zugferd\entities\basic\ram\TradeAllowanceChargeType $specifiedTradeAllowanceCharge | addToSpecifiedTradeAllowanceCharge | php | horstoeko/zugferd | src/entities/basic/ram/HeaderTradeSettlementType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/ram/HeaderTradeSettlementType.php | MIT |
public function setSpecifiedTradePaymentTerms(?\horstoeko\zugferd\entities\basic\ram\TradePaymentTermsType $specifiedTradePaymentTerms = null)
{
$this->specifiedTradePaymentTerms = $specifiedTradePaymentTerms;
return $this;
} | Sets a new specifiedTradePaymentTerms
@param \horstoeko\zugferd\entities\basic\ram\TradePaymentTermsType $specifiedTradePaymentTerms
@return self | setSpecifiedTradePaymentTerms | php | horstoeko/zugferd | src/entities/basic/ram/HeaderTradeSettlementType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/ram/HeaderTradeSettlementType.php | MIT |
public function setSpecifiedTradeSettlementHeaderMonetarySummation(\horstoeko\zugferd\entities\basic\ram\TradeSettlementHeaderMonetarySummationType $specifiedTradeSettlementHeaderMonetarySummation)
{
$this->specifiedTradeSettlementHeaderMonetarySummation = $specifiedTradeSettlementHeaderMonetarySummation;
return $this;
} | Sets a new specifiedTradeSettlementHeaderMonetarySummation
@param \horstoeko\zugferd\entities\basic\ram\TradeSettlementHeaderMonetarySummationType $specifiedTradeSettlementHeaderMonetarySummation
@return self | setSpecifiedTradeSettlementHeaderMonetarySummation | php | horstoeko/zugferd | src/entities/basic/ram/HeaderTradeSettlementType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/ram/HeaderTradeSettlementType.php | MIT |
public function addToInvoiceReferencedDocument(\horstoeko\zugferd\entities\basic\ram\ReferencedDocumentType $invoiceReferencedDocument)
{
$this->invoiceReferencedDocument[] = $invoiceReferencedDocument;
return $this;
} | Adds as invoiceReferencedDocument
@return self
@param \horstoeko\zugferd\entities\basic\ram\ReferencedDocumentType $invoiceReferencedDocument | addToInvoiceReferencedDocument | php | horstoeko/zugferd | src/entities/basic/ram/HeaderTradeSettlementType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/ram/HeaderTradeSettlementType.php | MIT |
public function setReceivableSpecifiedTradeAccountingAccount(?\horstoeko\zugferd\entities\basic\ram\TradeAccountingAccountType $receivableSpecifiedTradeAccountingAccount = null)
{
$this->receivableSpecifiedTradeAccountingAccount = $receivableSpecifiedTradeAccountingAccount;
return $this;
} | Sets a new receivableSpecifiedTradeAccountingAccount
@param \horstoeko\zugferd\entities\basic\ram\TradeAccountingAccountType $receivableSpecifiedTradeAccountingAccount
@return self | setReceivableSpecifiedTradeAccountingAccount | php | horstoeko/zugferd | src/entities/basic/ram/HeaderTradeSettlementType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/ram/HeaderTradeSettlementType.php | MIT |
public function setSellerTaxRepresentativeTradeParty(?\horstoeko\zugferd\entities\basic\ram\TradePartyType $sellerTaxRepresentativeTradeParty = null)
{
$this->sellerTaxRepresentativeTradeParty = $sellerTaxRepresentativeTradeParty;
return $this;
} | Sets a new sellerTaxRepresentativeTradeParty
@param \horstoeko\zugferd\entities\basic\ram\TradePartyType $sellerTaxRepresentativeTradeParty
@return self | setSellerTaxRepresentativeTradeParty | php | horstoeko/zugferd | src/entities/basic/ram/HeaderTradeAgreementType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/ram/HeaderTradeAgreementType.php | MIT |
public function setBuyerOrderReferencedDocument(?\horstoeko\zugferd\entities\basic\ram\ReferencedDocumentType $buyerOrderReferencedDocument = null)
{
$this->buyerOrderReferencedDocument = $buyerOrderReferencedDocument;
return $this;
} | Sets a new buyerOrderReferencedDocument
@param \horstoeko\zugferd\entities\basic\ram\ReferencedDocumentType $buyerOrderReferencedDocument
@return self | setBuyerOrderReferencedDocument | php | horstoeko/zugferd | src/entities/basic/ram/HeaderTradeAgreementType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/ram/HeaderTradeAgreementType.php | MIT |
public function setContractReferencedDocument(?\horstoeko\zugferd\entities\basic\ram\ReferencedDocumentType $contractReferencedDocument = null)
{
$this->contractReferencedDocument = $contractReferencedDocument;
return $this;
} | Sets a new contractReferencedDocument
@param \horstoeko\zugferd\entities\basic\ram\ReferencedDocumentType $contractReferencedDocument
@return self | setContractReferencedDocument | php | horstoeko/zugferd | src/entities/basic/ram/HeaderTradeAgreementType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/ram/HeaderTradeAgreementType.php | MIT |
public function setSpecifiedLegalOrganization(?\horstoeko\zugferd\entities\basic\ram\LegalOrganizationType $specifiedLegalOrganization = null)
{
$this->specifiedLegalOrganization = $specifiedLegalOrganization;
return $this;
} | Sets a new specifiedLegalOrganization
@param \horstoeko\zugferd\entities\basic\ram\LegalOrganizationType $specifiedLegalOrganization
@return self | setSpecifiedLegalOrganization | php | horstoeko/zugferd | src/entities/basic/ram/TradePartyType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/ram/TradePartyType.php | MIT |
public function setURIUniversalCommunication(?\horstoeko\zugferd\entities\basic\ram\UniversalCommunicationType $uRIUniversalCommunication = null)
{
$this->uRIUniversalCommunication = $uRIUniversalCommunication;
return $this;
} | Sets a new uRIUniversalCommunication
@param \horstoeko\zugferd\entities\basic\ram\UniversalCommunicationType $uRIUniversalCommunication
@return self | setURIUniversalCommunication | php | horstoeko/zugferd | src/entities/basic/ram/TradePartyType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/ram/TradePartyType.php | MIT |
public function addToSpecifiedTaxRegistration(\horstoeko\zugferd\entities\basic\ram\TaxRegistrationType $specifiedTaxRegistration)
{
$this->specifiedTaxRegistration[] = $specifiedTaxRegistration;
return $this;
} | Adds as specifiedTaxRegistration
@return self
@param \horstoeko\zugferd\entities\basic\ram\TaxRegistrationType $specifiedTaxRegistration | addToSpecifiedTaxRegistration | php | horstoeko/zugferd | src/entities/basic/ram/TradePartyType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/ram/TradePartyType.php | MIT |
public function setDirectDebitMandateID(?\horstoeko\zugferd\entities\basic\udt\IDType $directDebitMandateID = null)
{
$this->directDebitMandateID = $directDebitMandateID;
return $this;
} | Sets a new directDebitMandateID
@param \horstoeko\zugferd\entities\basic\udt\IDType $directDebitMandateID
@return self | setDirectDebitMandateID | php | horstoeko/zugferd | src/entities/basic/ram/TradePaymentTermsType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/ram/TradePaymentTermsType.php | MIT |
public function setFormattedIssueDateTime(?\horstoeko\zugferd\entities\basic\qdt\FormattedDateTimeType $formattedIssueDateTime = null)
{
$this->formattedIssueDateTime = $formattedIssueDateTime;
return $this;
} | Sets a new formattedIssueDateTime
@param \horstoeko\zugferd\entities\basic\qdt\FormattedDateTimeType $formattedIssueDateTime
@return self | setFormattedIssueDateTime | php | horstoeko/zugferd | src/entities/basic/ram/ReferencedDocumentType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/ram/ReferencedDocumentType.php | MIT |
public function setSpecifiedTradeSettlementLineMonetarySummation(\horstoeko\zugferd\entities\basic\ram\TradeSettlementLineMonetarySummationType $specifiedTradeSettlementLineMonetarySummation)
{
$this->specifiedTradeSettlementLineMonetarySummation = $specifiedTradeSettlementLineMonetarySummation;
return $this;
} | Sets a new specifiedTradeSettlementLineMonetarySummation
@param \horstoeko\zugferd\entities\basic\ram\TradeSettlementLineMonetarySummationType $specifiedTradeSettlementLineMonetarySummation
@return self | setSpecifiedTradeSettlementLineMonetarySummation | php | horstoeko/zugferd | src/entities/basic/ram/LineTradeSettlementType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/ram/LineTradeSettlementType.php | MIT |
public function setPayerPartyDebtorFinancialAccount(?\horstoeko\zugferd\entities\basic\ram\DebtorFinancialAccountType $payerPartyDebtorFinancialAccount = null)
{
$this->payerPartyDebtorFinancialAccount = $payerPartyDebtorFinancialAccount;
return $this;
} | Sets a new payerPartyDebtorFinancialAccount
@param \horstoeko\zugferd\entities\basic\ram\DebtorFinancialAccountType $payerPartyDebtorFinancialAccount
@return self | setPayerPartyDebtorFinancialAccount | php | horstoeko/zugferd | src/entities/basic/ram/TradeSettlementPaymentMeansType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/ram/TradeSettlementPaymentMeansType.php | MIT |
public function setPayeePartyCreditorFinancialAccount(?\horstoeko\zugferd\entities\basic\ram\CreditorFinancialAccountType $payeePartyCreditorFinancialAccount = null)
{
$this->payeePartyCreditorFinancialAccount = $payeePartyCreditorFinancialAccount;
return $this;
} | Sets a new payeePartyCreditorFinancialAccount
@param \horstoeko\zugferd\entities\basic\ram\CreditorFinancialAccountType $payeePartyCreditorFinancialAccount
@return self | setPayeePartyCreditorFinancialAccount | php | horstoeko/zugferd | src/entities/basic/ram/TradeSettlementPaymentMeansType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/ram/TradeSettlementPaymentMeansType.php | MIT |
public function setAppliedTradeAllowanceCharge(?\horstoeko\zugferd\entities\basic\ram\TradeAllowanceChargeType $appliedTradeAllowanceCharge = null)
{
$this->appliedTradeAllowanceCharge = $appliedTradeAllowanceCharge;
return $this;
} | Sets a new appliedTradeAllowanceCharge
@param \horstoeko\zugferd\entities\basic\ram\TradeAllowanceChargeType $appliedTradeAllowanceCharge
@return self | setAppliedTradeAllowanceCharge | php | horstoeko/zugferd | src/entities/basic/ram/TradePriceType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/ram/TradePriceType.php | MIT |
public function setBusinessProcessSpecifiedDocumentContextParameter(?\horstoeko\zugferd\entities\basic\ram\DocumentContextParameterType $businessProcessSpecifiedDocumentContextParameter = null)
{
$this->businessProcessSpecifiedDocumentContextParameter = $businessProcessSpecifiedDocumentContextParameter;
return $this;
} | Sets a new businessProcessSpecifiedDocumentContextParameter
@param \horstoeko\zugferd\entities\basic\ram\DocumentContextParameterType $businessProcessSpecifiedDocumentContextParameter
@return self | setBusinessProcessSpecifiedDocumentContextParameter | php | horstoeko/zugferd | src/entities/basic/ram/ExchangedDocumentContextType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/ram/ExchangedDocumentContextType.php | MIT |
public function setGuidelineSpecifiedDocumentContextParameter(\horstoeko\zugferd\entities\basic\ram\DocumentContextParameterType $guidelineSpecifiedDocumentContextParameter)
{
$this->guidelineSpecifiedDocumentContextParameter = $guidelineSpecifiedDocumentContextParameter;
return $this;
} | Sets a new guidelineSpecifiedDocumentContextParameter
@param \horstoeko\zugferd\entities\basic\ram\DocumentContextParameterType $guidelineSpecifiedDocumentContextParameter
@return self | setGuidelineSpecifiedDocumentContextParameter | php | horstoeko/zugferd | src/entities/basic/ram/ExchangedDocumentContextType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/ram/ExchangedDocumentContextType.php | MIT |
public function setExchangedDocumentContext(\horstoeko\zugferd\entities\basic\ram\ExchangedDocumentContextType $exchangedDocumentContext)
{
$this->exchangedDocumentContext = $exchangedDocumentContext;
return $this;
} | Sets a new exchangedDocumentContext
@param \horstoeko\zugferd\entities\basic\ram\ExchangedDocumentContextType $exchangedDocumentContext
@return self | setExchangedDocumentContext | php | horstoeko/zugferd | src/entities/basic/rsm/CrossIndustryInvoiceType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/rsm/CrossIndustryInvoiceType.php | MIT |
public function setSupplyChainTradeTransaction(\horstoeko\zugferd\entities\basic\ram\SupplyChainTradeTransactionType $supplyChainTradeTransaction)
{
$this->supplyChainTradeTransaction = $supplyChainTradeTransaction;
return $this;
} | Sets a new supplyChainTradeTransaction
@param \horstoeko\zugferd\entities\basic\ram\SupplyChainTradeTransactionType $supplyChainTradeTransaction
@return self | setSupplyChainTradeTransaction | php | horstoeko/zugferd | src/entities/basic/rsm/CrossIndustryInvoiceType.php | https://github.com/horstoeko/zugferd/blob/master/src/entities/basic/rsm/CrossIndustryInvoiceType.php | MIT |
protected function addToInternalVatBuffer(string $taxCategoryCode, string $taxTypeCode, float $taxPercent, float $lineTotalAmount, float $chargeAmount, float $allowanceAmount, float $logisticServiceCharge)
{
$vatGroup = md5($taxCategoryCode . "_" . $taxTypeCode . "_" . number_format($taxPercent, 10, '_', '__'));
if (!isset($this->vatBreakdown[$vatGroup])) {
$this->vatBreakdown[$vatGroup] = [
self::VT_TAXCATEGORY => $taxCategoryCode,
self::VT_TAXTYPE => $taxTypeCode,
self::VT_TAXPERCENT => $taxPercent,
self::VT_LINETOTALBASISAMOUNT => 0.0,
self::VT_ALLOWANCEAMOUNT => 0.0,
self::VT_CHARGEAMOUNT => 0.0,
self::VT_ALLOWANCECHARGEAMOUNT => 0.0,
self::VT_CALCULATEDAMOUNT => 0.0,
self::VT_LOGSERVICECHARGE => 0.0
];
}
$this->vatBreakdown[$vatGroup][self::VT_LINETOTALBASISAMOUNT] += $lineTotalAmount;
$this->vatBreakdown[$vatGroup][self::VT_ALLOWANCEAMOUNT] += $allowanceAmount;
$this->vatBreakdown[$vatGroup][self::VT_CHARGEAMOUNT] += $chargeAmount;
$this->vatBreakdown[$vatGroup][self::VT_LOGSERVICECHARGE] += $logisticServiceCharge;
$this->vatBreakdown[$vatGroup][self::VT_ALLOWANCECHARGEAMOUNT] =
$this->vatBreakdown[$vatGroup][self::VT_CHARGEAMOUNT] -
$this->vatBreakdown[$vatGroup][self::VT_ALLOWANCEAMOUNT] +
$this->vatBreakdown[$vatGroup][self::VT_LOGSERVICECHARGE];
$this->vatBreakdown[$vatGroup][self::VT_BASISAMOUNT] =
$this->vatBreakdown[$vatGroup][self::VT_LINETOTALBASISAMOUNT] +
$this->vatBreakdown[$vatGroup][self::VT_ALLOWANCECHARGEAMOUNT];
$this->vatBreakdown[$vatGroup][self::VT_CALCULATEDAMOUNT] =
round(
$this->vatBreakdown[$vatGroup][self::VT_BASISAMOUNT] *
$this->vatBreakdown[$vatGroup][self::VT_TAXPERCENT] / 100.0,
2
);
} | Insert into internal vat table for later using, e.g. when creating
the vat breakdown
@param string $taxCategoryCode
@param string $taxTypeCode
@param float $taxPercent
@param float $lineTotalAmount
@param float $chargeAmount
@param float $allowanceAmount
@return void | addToInternalVatBuffer | php | horstoeko/zugferd | src/quick/ZugferdQuickDescriptor.php | https://github.com/horstoeko/zugferd/blob/master/src/quick/ZugferdQuickDescriptor.php | MIT |
public function __toString()
{
return $this->getJson();
} | Magic method __toString, String converstion
@return string
@throws InvalidArgumentException
@throws PcreException
@throws LogicException | __toString | php | horstoeko/zugferd | make/genmethoddocs.php | https://github.com/horstoeko/zugferd/blob/master/make/genmethoddocs.php | MIT |
public function invokePrivateMethodFromObject($object, string $methodName, ...$args)
{
$method = $this->getPrivateMethodFromObject($object, $methodName);
return $method->invoke($object, ...$args);
} | Access to private method and invoke it
@param object $object
@param string $methodName
@param array $args
@return mixed | invokePrivateMethodFromObject | php | horstoeko/zugferd | tests/TestCase.php | https://github.com/horstoeko/zugferd/blob/master/tests/TestCase.php | MIT |
protected function disableRenderXmlContent()
{
$this->latestXml = new \SimpleXMLElement((self::$document)->getContent());
$this->renderingOfXmlDisabled = true;
} | Disable rendering of test content
@return void | disableRenderXmlContent | php | horstoeko/zugferd | tests/traits/HandlesXmlTests.php | https://github.com/horstoeko/zugferd/blob/master/tests/traits/HandlesXmlTests.php | MIT |
protected function assertXPathExists(string $xpath)
{
$xml = $this->getXml();
$xmlvalue = $xml->xpath($xpath);
$this->assertNotEmpty($xmlvalue);
} | Test that an xml element does not exist
@param string $xpath
@return void | assertXPathExists | php | horstoeko/zugferd | tests/traits/HandlesXmlTests.php | https://github.com/horstoeko/zugferd/blob/master/tests/traits/HandlesXmlTests.php | MIT |
protected function assertXPathNotExistsWithIndex(string $xpath, int $index)
{
$xml = $this->getXml();
$xmlvalue = $xml->xpath($xpath);
$this->assertArrayNotHasKey($index, $xmlvalue);
} | Test that an xml element does not exist at index
@param string $xpath
@param integer $index
@return void | assertXPathNotExistsWithIndex | php | horstoeko/zugferd | tests/traits/HandlesXmlTests.php | https://github.com/horstoeko/zugferd/blob/master/tests/traits/HandlesXmlTests.php | MIT |
public static function getParam($name)
{
return self::getInstance()->getParameter($name);
} | Shortcut to retried a parameter
@param string $name
@return mixed | getParam | php | liip/RMT | src/Liip/RMT/Context.php | https://github.com/liip/RMT/blob/master/src/Liip/RMT/Context.php | MIT |
public function getTitle()
{
$nsAndclass = explode('\\', get_class($this));
return preg_replace('/(?!^)[[:upper:]][[:lower:]]/', ' $0', preg_replace('/(?!^)[[:upper:]]+/', '$0', end($nsAndclass)));
} | Return the name of the action as it will be display to the user
@return string | getTitle | php | liip/RMT | src/Liip/RMT/Action/BaseAction.php | https://github.com/liip/RMT/blob/master/src/Liip/RMT/Action/BaseAction.php | MIT |
public function getInformationRequests()
{
return array();
} | Return an array of options that can be
* Liip\RMT\Option\Option A new option specific to this prerequiste
* string The name of a standarmt option (comment, type, author...)
@return array | getInformationRequests | php | liip/RMT | src/Liip/RMT/Action/BaseAction.php | https://github.com/liip/RMT/blob/master/src/Liip/RMT/Action/BaseAction.php | MIT |
public function confirmSuccess()
{
Context::get('output')->writeln('<info>OK</info>');
} | A common method to confirm success to the user | confirmSuccess | php | liip/RMT | src/Liip/RMT/Action/BaseAction.php | https://github.com/liip/RMT/blob/master/src/Liip/RMT/Action/BaseAction.php | MIT |
public function executeCommandInProcess($cmd, $timeout = null)
{
Context::get('output')->write("<comment>$cmd</comment>\n\n");
$process = method_exists(Process::class, 'fromShellCommandline') ? Process::fromShellCommandline($cmd) : new Process($cmd);
if ($timeout !== null) {
$process->setTimeout($timeout);
}
$process->run(function ($type, $buffer) {
Context::get('output')->write($buffer);
});
return $process;
} | Execute a command and render the output through the classical indented output
@param string $cmd
@param float|null $timeout
@return Process | executeCommandInProcess | php | liip/RMT | src/Liip/RMT/Action/BaseAction.php | https://github.com/liip/RMT/blob/master/src/Liip/RMT/Action/BaseAction.php | MIT |
protected function updateFile($filename)
{
$current = Context::getParam('current-version');
$next = Context::getParam('new-version');
$content = file_get_contents($filename);
if (false === strpos($content, $current)) {
throw new Exception('The version class ' . $filename . " does not contain the current version $current");
}
if (isset($this->options['pattern'])) {
$current = str_replace('%version%', $current, $this->options['pattern']);
$next = str_replace('%version%', $next, $this->options['pattern']);
}
$content = str_replace($current, $next, $content);
if (false === strpos($content, $next)) {
throw new Exception('The version class ' . $filename . " could not be updated with version $next");
}
file_put_contents($filename, $content);
} | will update a given filename with the current version
@param string $filename
@throws \Liip\RMT\Exception | updateFile | php | liip/RMT | src/Liip/RMT/Action/UpdateVersionClassAction.php | https://github.com/liip/RMT/blob/master/src/Liip/RMT/Action/UpdateVersionClassAction.php | MIT |
protected function updateFile($filename, $pattern = null)
{
$current = Context::getParam('current-version');
$next = Context::getParam('new-version');
$content = file_get_contents($filename);
if (false === strpos($content, $current)) {
throw new Exception("The version file $filename does not contain the current version $current");
}
if ($pattern) {
$current = str_replace('%version%', $current, $pattern);
$next = str_replace('%version%', $next, $pattern);
}
$content = str_replace($current, $next, $content);
if (false === strpos($content, (string)$next)) {
throw new Exception("The version file $filename could not be updated with version $next");
}
file_put_contents($filename, $content);
} | will update a given filename with the current version
@param string $filename
@param null $pattern
@throws Exception | updateFile | php | liip/RMT | src/Liip/RMT/Action/FilesUpdateAction.php | https://github.com/liip/RMT/blob/master/src/Liip/RMT/Action/FilesUpdateAction.php | MIT |
protected function findPositionToInsert($lines, $type)
{
// Major are always inserted at the top
if ($type == 'major') {
return 0;
}
// Minor must be inserted one line above the first major section
if ($type == 'minor') {
foreach ($lines as $pos => $line) {
if (preg_match('/^##\ +/', $line)) {
return $pos + 1;
}
}
}
// Patch should go directly after the first minor
if ($type == 'patch') {
foreach ($lines as $pos => $line) {
if (preg_match('/\ \*\ Version\s\*\*\d+\.\d+\*\*\s\-/', $line)) {
return $pos + 1;
}
}
}
throw new \Liip\RMT\Exception('Invalid changelog formatting');
} | Return the position where to insert new lines according to the type of insertion
@param array $lines Existing lines
@param string $type Release type
@return int The position where to insert
@throws \Liip\RMT\Exception | findPositionToInsert | php | liip/RMT | src/Liip/RMT/Changelog/Formatter/MarkdownChangelogFormatter.php | https://github.com/liip/RMT/blob/master/src/Liip/RMT/Changelog/Formatter/MarkdownChangelogFormatter.php | MIT |
protected function formatExtraLines($lines)
{
foreach ($lines as $pos => $line) {
$lines[$pos] = ' * '.$line;
}
return $lines;
} | format extra lines (such as commit details)
@param array $lines
@return array | formatExtraLines | php | liip/RMT | src/Liip/RMT/Changelog/Formatter/MarkdownChangelogFormatter.php | https://github.com/liip/RMT/blob/master/src/Liip/RMT/Changelog/Formatter/MarkdownChangelogFormatter.php | MIT |
public function getValidVersionTags($versionRegex)
{
$validator = new TagValidator($versionRegex, $this->getTagPrefix());
return $validator->filtrateList($this->vcs->getTags());
} | Return all tags matching the versionRegex and prefix
@param string $versionRegex
@return array | getValidVersionTags | php | liip/RMT | src/Liip/RMT/Version/Persister/VcsTagPersister.php | https://github.com/liip/RMT/blob/master/src/Liip/RMT/Version/Persister/VcsTagPersister.php | MIT |
public function filtrateList($tags)
{
$validTags = array();
foreach ($tags as $tag) {
if ($this->isValid($tag)) {
$validTags[] = $tag;
}
}
return $validTags;
} | Remove all invalid tags from a list
@param array $tags
@return array | filtrateList | php | liip/RMT | src/Liip/RMT/Version/Persister/TagValidator.php | https://github.com/liip/RMT/blob/master/src/Liip/RMT/Version/Persister/TagValidator.php | MIT |
public function getCommandOptions()
{
$consoleOptions = array();
foreach ($this->requests as $name => $request) {
if ($request->isAvailableAsCommandOption()) {
$consoleOptions[$name] = $request->convertToCommandOption();
}
}
return $consoleOptions;
} | Return a set of command request, converted from the Base Request
@return InputOption[] | getCommandOptions | php | liip/RMT | src/Liip/RMT/Information/InformationCollector.php | https://github.com/liip/RMT/blob/master/src/Liip/RMT/Information/InformationCollector.php | MIT |
public function notify(
null|string $preset = "saved",
null|string $message = "",
null|string $bg = 'tf-notify-bg-default',
null|string $icon = "info",
null|string $iconcolor = "text-white")
{
[$bg, $icon, $iconcolor] = match ($preset) {
'success', 'green', 'saved', 'check' => ['tf-bg-success', 'check', $iconcolor],
'warning', 'orange', => ['tf-bg-warning', 'exclamation', $iconcolor],
'happy', 'positive' => ['bg-white', 'happy', 'text-green-600'],
'sad', 'negative' => ['bg-white', 'sad', 'text-red-600'],
'danger', 'red' => ['tf-bg-danger', 'warning', $iconcolor],
'info', 'blue' => ['tf-bg-info', 'info', $iconcolor],
default => [$bg, $icon, $iconcolor],
};
if ($preset == 'saved') {
$message = $message ?: trans('tf::form.alerts.updated-success');
$this->emitSelf('notify-saved');//x-on:notify-saved.window, flash trans('tf::form.saved') on the form submit button, buttons.root.blade.php
}
$payload = [
'bg' => $bg,
'message' => $message,
'icon' => $icon,
'iconcolor' => $iconcolor,
];
if ($this->withSession) {
session()->flash('notify', $payload);
//reset withSession
$this->withSession = false;
return;
}
$this->dispatchBrowserEvent('notify', $payload);
} | Presets: 'info', 'success, 'warning', 'danger', 'happy', 'sad' | notify | php | tanthammar/tall-forms | src/Traits/Notify.php | https://github.com/tanthammar/tall-forms/blob/master/src/Traits/Notify.php | MIT |
public function clearFieldAndDeleteTempFiles($field_name)
{
if ($this->deleteAllTempFiles($this->$field_name)) $this->$field_name = null;
} | RESETS THE FIELD and DELETES all TEMPORARY files.
Don't call this before you saved the files you want to keep.
@param $field_name | clearFieldAndDeleteTempFiles | php | tanthammar/tall-forms | src/Traits/UploadsFiles.php | https://github.com/tanthammar/tall-forms/blob/master/src/Traits/UploadsFiles.php | MIT |
public function tallFillField(array $array)
{
data_set($this->form_data, $array['field'], $array['value']);
} | Fill fields from javascript: $wire.call('tallFillField', ['field' => ..., 'value' => ...])<br>
Fill fields from Livewire: $this->>emit(...), $this->>emitUp(...), $this->>emitTo(...), $this->>emitSelf(...)
The value will be validated in either updatedFoo() or on submit. | tallFillField | php | tanthammar/tall-forms | src/Traits/MiscMethods.php | https://github.com/tanthammar/tall-forms/blob/master/src/Traits/MiscMethods.php | MIT |
public function __construct(InvitationModel $invitation)
{
$this->invitation = $invitation;
} | Create a new message instance.
@return void | __construct | php | Jurager/teams | src/Mail/Invitation.php | https://github.com/Jurager/teams/blob/master/src/Mail/Invitation.php | MIT |
public function __construct(array $attributes = [])
{
parent::__construct($attributes);
$this->table = Config::get('teams.tables.team_user', 'team_user');
} | Creates a new instance of the model.
@param array $attributes | __construct | php | Jurager/teams | src/Models/Membership.php | https://github.com/Jurager/teams/blob/master/src/Models/Membership.php | MIT |
public function accept()
{
// @todo: accept invitation
// $this->team()->users()->attach($user, ['role' => $role]);
// $invite->delete();
} | Accept the invitation to the team | accept | php | Jurager/teams | src/Models/Invitation.php | https://github.com/Jurager/teams/blob/master/src/Models/Invitation.php | MIT |
public function run()
{
// $this->call(UsersTableSeeder::class);
} | Seed the application's database.
@return void | run | php | wanglelecc/laracms | database/seeds/DatabaseSeeder.php | https://github.com/wanglelecc/laracms/blob/master/database/seeds/DatabaseSeeder.php | MIT |
public function authorize()
{
return true;
} | Determine if the user is authorized to make this request.
@return bool | authorize | php | wanglelecc/laracms | app/Http/Requests/Request.php | https://github.com/wanglelecc/laracms/blob/master/app/Http/Requests/Request.php | MIT |
public function __construct()
{
$this->middleware('auth');
$this->middleware('signed')->only('verify');
$this->middleware('throttle:6,1')->only('verify', 'resend');
} | Create a new controller instance.
@return void | __construct | php | wanglelecc/laracms | app/Http/Controllers/Auth/VerificationController.php | https://github.com/wanglelecc/laracms/blob/master/app/Http/Controllers/Auth/VerificationController.php | MIT |
protected function validator(array $data)
{
return Validator::make($data, [
'name' => ['required', 'string', 'max:255'],
'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],
'password' => ['required', 'string', 'min:6', 'confirmed'],
]);
} | Get a validator for an incoming registration request.
@param array $data
@return \Illuminate\Contracts\Validation\Validator | validator | php | wanglelecc/laracms | app/Http/Controllers/Auth/RegisterController.php | https://github.com/wanglelecc/laracms/blob/master/app/Http/Controllers/Auth/RegisterController.php | MIT |
protected function create(array $data)
{
return User::create([
'name' => $data['name'],
'email' => $data['email'],
'password' => Hash::make($data['password']),
]);
} | Create a new user instance after a valid registration.
@param array $data
@return \App\User | create | php | wanglelecc/laracms | app/Http/Controllers/Auth/RegisterController.php | https://github.com/wanglelecc/laracms/blob/master/app/Http/Controllers/Auth/RegisterController.php | MIT |
protected function redirectTo($request)
{
if (! $request->expectsJson()) {
return route('login');
}
} | Get the path the user should be redirected to when they are not authenticated.
@param \Illuminate\Http\Request $request
@return string | redirectTo | php | wanglelecc/laracms | app/Http/Middleware/Authenticate.php | https://github.com/wanglelecc/laracms/blob/master/app/Http/Middleware/Authenticate.php | MIT |
public function render($request, Exception $exception)
{
return parent::render($request, $exception);
} | Render an exception into an HTTP response.
@param \Illuminate\Http\Request $request
@param \Exception $exception
@return \Illuminate\Http\Response | render | php | wanglelecc/laracms | app/Exceptions/Handler.php | https://github.com/wanglelecc/laracms/blob/master/app/Exceptions/Handler.php | MIT |
protected function schedule(Schedule $schedule)
{
// $schedule->command('inspire')
// ->hourly();
# 每天午夜清除一次临时垃圾分片数据
$schedule->command('laracms:uploader')->daily();
} | Define the application's command schedule.
@param \Illuminate\Console\Scheduling\Schedule $schedule
@return void | schedule | php | wanglelecc/laracms | app/Console/Kernel.php | https://github.com/wanglelecc/laracms/blob/master/app/Console/Kernel.php | MIT |
protected function commands()
{
$this->load(__DIR__.'/Commands');
require base_path('routes/console.php');
} | Register the commands for the application.
@return void | commands | php | wanglelecc/laracms | app/Console/Kernel.php | https://github.com/wanglelecc/laracms/blob/master/app/Console/Kernel.php | MIT |
public function boot()
{
$this->registerPolicies();
//
} | Register any authentication / authorization services.
@return void | boot | php | wanglelecc/laracms | app/Providers/AuthServiceProvider.php | https://github.com/wanglelecc/laracms/blob/master/app/Providers/AuthServiceProvider.php | MIT |
public function boot()
{
parent::boot();
//
} | Register any events for your application.
@return void | boot | php | wanglelecc/laracms | app/Providers/EventServiceProvider.php | https://github.com/wanglelecc/laracms/blob/master/app/Providers/EventServiceProvider.php | MIT |
public function boot()
{
//
parent::boot();
} | Define your route model bindings, pattern filters, etc.
@return void | boot | php | wanglelecc/laracms | app/Providers/RouteServiceProvider.php | https://github.com/wanglelecc/laracms/blob/master/app/Providers/RouteServiceProvider.php | MIT |
public function map()
{
$this->mapApiRoutes();
$this->mapWebRoutes();
//
} | Define the routes for the application.
@return void | map | php | wanglelecc/laracms | app/Providers/RouteServiceProvider.php | https://github.com/wanglelecc/laracms/blob/master/app/Providers/RouteServiceProvider.php | MIT |
protected function mapWebRoutes()
{
Route::middleware('web')
->namespace($this->namespace)
->group(base_path('routes/web.php'));
} | Define the "web" routes for the application.
These routes all receive session state, CSRF protection, etc.
@return void | mapWebRoutes | php | wanglelecc/laracms | app/Providers/RouteServiceProvider.php | https://github.com/wanglelecc/laracms/blob/master/app/Providers/RouteServiceProvider.php | MIT |
protected function mapApiRoutes()
{
Route::prefix('api')
->middleware('api')
->namespace($this->namespace)
->group(base_path('routes/api.php'));
} | Define the "api" routes for the application.
These routes are typically stateless.
@return void | mapApiRoutes | php | wanglelecc/laracms | app/Providers/RouteServiceProvider.php | https://github.com/wanglelecc/laracms/blob/master/app/Providers/RouteServiceProvider.php | MIT |
public function boot()
{
Broadcast::routes();
require base_path('routes/channels.php');
} | Bootstrap any application services.
@return void | boot | php | wanglelecc/laracms | app/Providers/BroadcastServiceProvider.php | https://github.com/wanglelecc/laracms/blob/master/app/Providers/BroadcastServiceProvider.php | MIT |
public function register()
{
//
} | Register any application services.
@return void | register | php | wanglelecc/laracms | app/Providers/AppServiceProvider.php | https://github.com/wanglelecc/laracms/blob/master/app/Providers/AppServiceProvider.php | MIT |
public function rules()
{
return [
'phone' => 'required|regex:/^1[3456789]\d{9}$/|unique:users',
];
} | Get the validation rules that apply to the request.
@return array | rules | php | wanglelecc/laracms | laracms/src/Http/Requests/VerificationCodeRequest.php | https://github.com/wanglelecc/laracms/blob/master/laracms/src/Http/Requests/VerificationCodeRequest.php | MIT |
public function article(Request $request){
$query = $request->input('query');
$articles = Article::search($query)->paginate(10);
return frontend_view('search.article', compact('articles', 'query'));
} | 参考地址:http://tnt.studio/blog/did-you-mean-functionality-with-laravel-scout
Github: https://github.com/teamtnt/laravel-scout-tntsearch-driver
@param Request $request
@return array|\Illuminate\Database\Eloquent\Collection | article | php | wanglelecc/laracms | laracms/src/Http/Controllers/SearchController.php | https://github.com/wanglelecc/laracms/blob/master/laracms/src/Http/Controllers/SearchController.php | MIT |
public function redirectToProvider($type)
{
if ($this->checkOauthType($type)) {
return abort(404);
}
return Socialite::with($type)->redirect();
// return Socialite::driver($type)->stateless()->redirect();
} | Redirect the user to the GitHub authentication page.
@return Response | redirectToProvider | php | wanglelecc/laracms | laracms/src/Http/Controllers/Auth/LoginController.php | https://github.com/wanglelecc/laracms/blob/master/laracms/src/Http/Controllers/Auth/LoginController.php | MIT |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.