Skip to content
Browse files

Adding method chaining ot readme

  • Loading branch information...
1 parent d8e1c22 commit 7a1805d2b1817b4e8ea31abe5e704d5b98d2d938 @krewenki committed Apr 16, 2011
Showing with 1 addition and 4 deletions.
  1. +1 −4 README.markdown
View
5 README.markdown
@@ -7,10 +7,7 @@ You will need a DocRaptor account before you can use the class, as it requires a
###Usage
$docraptor = new DocRaptor(YOUR_API_KEY);
- $docraptor->setDocumentContent('<h1>Hello!</h1>');
- $docraptor->setDocumentType('pdf');
- $docraptor->setTest(true);
- $docraptor->setName('output.pdf');
+ $docraptor->setDocumentContent('<h1>Hello!</h1>')->setDocumentType('pdf')->setTest(true)->setName('output.pdf');
$file = $docraptor->fetchDocument();
Optionally, the fetchDocument() method takes a filename as an argument. If you provide

0 comments on commit 7a1805d

Please sign in to comment.
Something went wrong with that request. Please try again.