2020-02-12 01:41:17 +01:00
|
|
|
<?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 $header;
|
|
|
|
|
|
|
|
private $body;
|
|
|
|
|
|
|
|
private $table;
|
|
|
|
|
|
|
|
private $footer;
|
|
|
|
|
|
|
|
private $table_styles;
|
|
|
|
|
2020-02-17 21:07:32 +01:00
|
|
|
public function __construct($design)
|
2020-02-12 01:41:17 +01:00
|
|
|
{
|
|
|
|
|
2020-02-17 21:07:32 +01:00
|
|
|
$this->header = $design->header;
|
2020-02-12 01:41:17 +01:00
|
|
|
|
2020-02-17 21:07:32 +01:00
|
|
|
$this->body = $design->body;
|
2020-02-12 01:41:17 +01:00
|
|
|
|
2020-02-17 21:07:32 +01:00
|
|
|
$this->table = $design->table;
|
2020-02-12 01:41:17 +01:00
|
|
|
|
2020-02-17 21:07:32 +01:00
|
|
|
$this->footer = $design->footer;
|
2020-02-12 01:41:17 +01:00
|
|
|
|
2020-02-17 21:07:32 +01:00
|
|
|
$this->table_styles = $design->table_styles;
|
2020-02-12 01:41:17 +01:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public function header()
|
|
|
|
{
|
|
|
|
|
|
|
|
return $this->header;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public function body()
|
|
|
|
{
|
|
|
|
|
|
|
|
return $this->body;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public function table_styles()
|
|
|
|
{
|
|
|
|
|
|
|
|
return $this->table_styles;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public function table()
|
|
|
|
{
|
|
|
|
|
|
|
|
return $this->table;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public function footer()
|
|
|
|
{
|
|
|
|
|
|
|
|
return $this->footer;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|