invoiceninja/app/Designs/Custom.php
David Bomba 7acc6ee300
Repeating header and footers on Invoice PDFs (#3424)
* remove jobs table

* Working on notifications

* Working on notifications

* Fixes for setting group level currency id on new client

* Working on repeating headers

* Use CSS to force headers and footers

* recurring headers and footers

* Preview PDF

* Working on PDF Preview
2020-03-05 18:14:57 +11:00

93 lines
1.2 KiB
PHP

<?php
/**
* Invoice Ninja (https://invoiceninja.com)
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @copyright Copyright (c) 2020. Invoice Ninja LLC (https://invoiceninja.com)
*
* @license https://opensource.org/licenses/AAL
*/
namespace App\Designs;
class Custom extends AbstractDesign
{
private $include;
private $header;
private $body;
private $product_table;
private $task_table;
private $footer;
private $table_styles;
public function __construct($design)
{
$this->include = $design->include;
$this->header = $design->header;
$this->body = $design->body;
$this->product_table = $design->product_table;
$this->task_table = $design->task_table;
$this->footer = $design->footer;
$this->table_styles = $design->table_styles;
}
public function include()
{
return $this->include;
}
public function header()
{
return $this->header;
}
public function body()
{
return $this->body;
}
public function table_styles()
{
return $this->table_styles;
}
public function product_table()
{
return $this->product_table;
}
public function task_table()
{
return $this->task_table;
}
public function footer()
{
return $this->footer;
}
}