/** * Test With Empty Data */ public function testWithEmpty() { $o = DocumentCollection::factory(); $this->assertInstanceOf('\\laravel\\pagseguro\\Document\\DocumentCollection', $o); $this->assertCount(0, $o); }
/** * Set Documents (Lista de Documentos) * @param DocumentCollection|array $documents * @return AddressInterface */ public function setDocuments($documents) { if (is_array($documents)) { $documents = DocumentCollection::factory($documents); } $this->documents = $documents; return $this; }