package and depencies

This commit is contained in:
RafficMohammed
2023-01-08 02:57:24 +05:30
parent d5332eb421
commit 1d54b8bc7f
4309 changed files with 193331 additions and 172289 deletions

View File

@@ -26,14 +26,14 @@ abstract class Pdf extends Html
/**
* Orientation (Over-ride).
*
* @var string
* @var ?string
*/
protected $orientation;
/**
* Paper size (Over-ride).
*
* @var int
* @var ?int
*/
protected $paperSize;
@@ -155,7 +155,7 @@ abstract class Pdf extends Html
/**
* Get Paper Size.
*
* @return int
* @return ?int
*/
public function getPaperSize()
{
@@ -165,23 +165,21 @@ abstract class Pdf extends Html
/**
* Set Paper Size.
*
* @param string $pValue Paper size see PageSetup::PAPERSIZE_*
* @param int $paperSize Paper size see PageSetup::PAPERSIZE_*
*
* @return self
*/
public function setPaperSize($pValue)
public function setPaperSize($paperSize)
{
$this->paperSize = $pValue;
$this->paperSize = $paperSize;
return $this;
}
/**
* Get Orientation.
*
* @return string
*/
public function getOrientation()
public function getOrientation(): ?string
{
return $this->orientation;
}
@@ -189,13 +187,13 @@ abstract class Pdf extends Html
/**
* Set Orientation.
*
* @param string $pValue Page orientation see PageSetup::ORIENTATION_*
* @param string $orientation Page orientation see PageSetup::ORIENTATION_*
*
* @return self
*/
public function setOrientation($pValue)
public function setOrientation($orientation)
{
$this->orientation = $pValue;
$this->orientation = $orientation;
return $this;
}
@@ -213,16 +211,16 @@ abstract class Pdf extends Html
/**
* Set temporary storage directory.
*
* @param string $pValue Temporary storage directory
* @param string $temporaryDirectory Temporary storage directory
*
* @return self
*/
public function setTempDir($pValue)
public function setTempDir($temporaryDirectory)
{
if (is_dir($pValue)) {
$this->tempDir = $pValue;
if (is_dir($temporaryDirectory)) {
$this->tempDir = $temporaryDirectory;
} else {
throw new WriterException("Directory does not exist: $pValue");
throw new WriterException("Directory does not exist: $temporaryDirectory");
}
return $this;
@@ -231,14 +229,14 @@ abstract class Pdf extends Html
/**
* Save Spreadsheet to PDF file, pre-save.
*
* @param string $pFilename Name of the file to save as
* @param string $filename Name of the file to save as
*
* @return resource
*/
protected function prepareForSave($pFilename)
protected function prepareForSave($filename)
{
// Open file
$this->openFileHandle($pFilename);
$this->openFileHandle($filename);
return $this->fileHandle;
}