Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
4 / 4
CRAP
100.00% covered (success)
100.00%
6 / 6
Invoice
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
4 / 4
4
100.00% covered (success)
100.00%
6 / 6
 isEInvoiceRequested()
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 setEInvoiceRequested($eInvoiceRequested)
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
2 / 2
 getRecipientTin()
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 setRecipientTin($recipientTin)
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
2 / 2
<?php
/**
 * @author Krzysztof Gzocha <krzysztof.gzocha@xsolve.pl>
 */
namespace Team3\PayU\Order\Model\Buyer;
use JMS\Serializer\Annotation as JMS;
use Team3\PayU\Order\Model\Traits\AddressTrait;
/**
 * Class Invoice
 * @package Team3\PayU\Order\Model\Buyer
 * @JMS\AccessorOrder("alphabetical")
 */
class Invoice implements InvoiceInterface
{
    use AddressTrait;
    /**
     * @var string
     * @JMS\SerializedName("tin")
     */
    protected $recipientTin;
    /**
     * @var bool
     * @JMS\SerializedName("einvoiceRequested")
     */
    protected $eInvoiceRequested;
    /**
     * @return boolean
     */
    public function isEInvoiceRequested()
    {
        return $this->eInvoiceRequested;
    }
    /**
     * @param boolean $eInvoiceRequested
     *
     * @return Invoice
     */
    public function setEInvoiceRequested($eInvoiceRequested)
    {
        $this->eInvoiceRequested = $eInvoiceRequested;
        return $this;
    }
    /**
     * @return string
     */
    public function getRecipientTin()
    {
        return $this->recipientTin;
    }
    /**
     * @param string $recipientTin
     *
     * @return Invoice
     */
    public function setRecipientTin($recipientTin)
    {
        $this->recipientTin = $recipientTin;
        return $this;
    }
}