src/Invoice/Creator.php
protected function setInvoiceSource($invoiceSource)
    {
        $this->invoiceSource = $invoiceSource;
        if (!in_array($invoiceSource->getType(), array(Source::Order, Source::CreditNote))) {
            $this->log->error('Creator::setSource(): unknown source type %s', $this->invoiceSource->getType());
        };
    }
protected function setInvoiceSource($invoiceSource)
    {
        $this->invoiceSource = $invoiceSource;
        if (!in_array($invoiceSource->getType(), array(Source::Order, Source::CreditNote))) {
            $this->log->error('Creator::setSource(): unknown source type %s', $this->invoiceSource->getType());
        };
    }
protected function setInvoiceSource ( $ invoiceSource ) { $ this -> invoiceSource = $ invoiceSource ; if ( ! in_array ( $ invoiceSource -> getType ( ) , array ( Source :: Order , Source :: CreditNote ) ) ) { $ this -> log -> error ( 'Creator::setSource(): unknown source type %s' , $ this -> invoiceSource -> getType ( ) ) ; } ; }
Sets the source to create the invoice for.

@param Source $invoiceSource
Sets the source to create the invoice for .