mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-12-30 07:30:51 -05:00
* Refactor custom invoice HTML generation * remove table_styles() method from designs * Refactor designs * Clean up designs
82 lines
1.0 KiB
PHP
82 lines
1.0 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 $includes;
|
|
|
|
private $header;
|
|
|
|
private $body;
|
|
|
|
private $product;
|
|
|
|
private $task;
|
|
|
|
private $footer;
|
|
|
|
public function __construct($design)
|
|
{
|
|
$this->includes = $design->includes;
|
|
|
|
$this->header = $design->header;
|
|
|
|
$this->body = $design->body;
|
|
|
|
$this->product = $design->product;
|
|
|
|
$this->task = $design->task;
|
|
|
|
$this->footer = $design->footer;
|
|
|
|
}
|
|
|
|
public function includes()
|
|
{
|
|
return $this->includes;
|
|
}
|
|
|
|
public function header()
|
|
{
|
|
|
|
return $this->header;
|
|
|
|
}
|
|
|
|
public function body()
|
|
{
|
|
|
|
return $this->body;
|
|
|
|
}
|
|
|
|
public function product()
|
|
{
|
|
|
|
return $this->product;
|
|
|
|
}
|
|
|
|
public function task()
|
|
{
|
|
return $this->task;
|
|
}
|
|
|
|
public function footer()
|
|
{
|
|
|
|
return $this->footer;
|
|
|
|
}
|
|
|
|
} |