From befb43b4372e07afdeade63c8bbe5ee3db809ea4 Mon Sep 17 00:00:00 2001 From: Aleix Cabistany Date: Thu, 23 Mar 2017 16:20:23 +0100 Subject: [PATCH] methods --- src/PagenumberTask.php | 36 +++++++++++++++++++++++------------- src/SplitTask.php | 2 -- src/Task.php | 2 +- 3 files changed, 24 insertions(+), 16 deletions(-) diff --git a/src/PagenumberTask.php b/src/PagenumberTask.php index 369ef3f..93134b8 100644 --- a/src/PagenumberTask.php +++ b/src/PagenumberTask.php @@ -11,67 +11,67 @@ class PagenumberTask extends Task /** * @var boolean */ - private $facing_pages; + public $facing_pages; /** * @var boolean */ - private $first_cover; + public $first_cover; /** * @var string */ - private $pages; + public $pages; /** * @var integer */ - private $starting_number; + public $starting_number; /** * @var string */ - private $vertical_position; + public $vertical_position; /** * @var string */ - private $horizontal_position; + public $horizontal_position; /** * @var integer */ - private $vertical_position_adjustment; + public $vertical_position_adjustment; /** * @var integer */ - private $horizontal_position_adjustment; + public $horizontal_position_adjustment; /** * @var string */ - private $font_family; + public $font_family; /** * @var string */ - private $font_style; + public $font_style; /** * @var integer */ - private $font_size; + public $font_size; /** * @var string */ - private $font_color; + public $font_color; /** * @var string */ - private $text; + public $text; /** * AddnumbersTask constructor. @@ -202,4 +202,14 @@ public function setText($text) $this->text = $text; return $this; } + + + /** + * @param null $processData + * @return mixed + */ + public function execute($processData = null) + { + return parent::execute(get_object_vars($this)); + } } diff --git a/src/SplitTask.php b/src/SplitTask.php index 0880d1a..be6f531 100644 --- a/src/SplitTask.php +++ b/src/SplitTask.php @@ -96,6 +96,4 @@ public function execute($processData = null) $this->tool = 'split'; return parent::execute(get_object_vars($this)); } - - } diff --git a/src/Task.php b/src/Task.php index 60997a5..18dcbf9 100644 --- a/src/Task.php +++ b/src/Task.php @@ -31,7 +31,7 @@ class Task extends Ilovepdf /** - * Task constructor. + * Task constructor. * @param null $publicKey * @param null $secretKey */