PayPal\Api\Search::getArchived PHP Method

getArchived() public method

A flag indicating whether search is on invoices archived by merchant. true - returns archived / false returns unarchived / null returns all.
public getArchived ( ) : boolean
return boolean
    public function getArchived()
    {
        return $this->archived;
    }

Usage Example

Example #1
0
 /**
  * @depends testSerializationDeserialization
  * @param Search $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getEmail(), "TestSample");
     $this->assertEquals($obj->getRecipientFirstName(), "TestSample");
     $this->assertEquals($obj->getRecipientLastName(), "TestSample");
     $this->assertEquals($obj->getRecipientBusinessName(), "TestSample");
     $this->assertEquals($obj->getNumber(), "TestSample");
     $this->assertEquals($obj->getStatus(), "TestSample");
     $this->assertEquals($obj->getLowerTotalAmount(), CurrencyTest::getObject());
     $this->assertEquals($obj->getUpperTotalAmount(), CurrencyTest::getObject());
     $this->assertEquals($obj->getStartInvoiceDate(), "TestSample");
     $this->assertEquals($obj->getEndInvoiceDate(), "TestSample");
     $this->assertEquals($obj->getStartDueDate(), "TestSample");
     $this->assertEquals($obj->getEndDueDate(), "TestSample");
     $this->assertEquals($obj->getStartPaymentDate(), "TestSample");
     $this->assertEquals($obj->getEndPaymentDate(), "TestSample");
     $this->assertEquals($obj->getStartCreationDate(), "TestSample");
     $this->assertEquals($obj->getEndCreationDate(), "TestSample");
     $this->assertEquals($obj->getPage(), "12.34");
     $this->assertEquals($obj->getPageSize(), "12.34");
     $this->assertEquals($obj->getTotalCountRequired(), true);
     $this->assertEquals($obj->getArchived(), true);
 }