Open arildm opened 6 years ago
are all the tests are passing ?
I would like if you can make this an optional parameter which user can set if he want, so code should look like this
$pdfLibConfigurar = new PDFLibConfigurar();
$pdfLibConfigurar->setNumRenderingThreads(4);
$pdfLib = new PDFLib($pdfLibConfigurar);
so users who want to configure the library can create a configurar object and pass it to the constructor of the PdfLIb(); and others who do not want any advance configurations they can use the library the same old way
what do you think ?
That would perhaps be slightly better, yes. Because then we don't need to add new public methods to PDFLib. I don't recognize that pattern, but it looks almost like the Builder pattern.
To answer your old question: I never managed to get phpunit running, so I couldn't test it.
Sorry could not reply to you... it is just an example if you could implement builder pattern that would be great!!
Resolves #8