PayPal\Api\InvoiceItem::getDate PHP Méthode

getDate() public méthode

The date when the item or service was provided. The date format is *yyyy*-*MM*-*dd* *z* as defined in Internet Date/Time Format.
public getDate ( ) : string
Résultat string
    public function getDate()
    {
        return $this->date;
    }

Usage Example

 /**
  * @depends testSerializationDeserialization
  * @param InvoiceItem $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getName(), "TestSample");
     $this->assertEquals($obj->getDescription(), "TestSample");
     $this->assertEquals($obj->getQuantity(), "12.34");
     $this->assertEquals($obj->getUnitPrice(), CurrencyTest::getObject());
     $this->assertEquals($obj->getTax(), TaxTest::getObject());
     $this->assertEquals($obj->getDate(), "TestSample");
     $this->assertEquals($obj->getDiscount(), CostTest::getObject());
 }
All Usage Examples Of PayPal\Api\InvoiceItem::getDate