2020-02-12 11:41:17 +11: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
|
|
|
|
|
{
|
2020-03-09 20:38:15 +11:00
|
|
|
public $includes;
|
2020-03-04 22:09:43 +11:00
|
|
|
|
2020-03-09 20:38:15 +11:00
|
|
|
public $header;
|
2020-02-12 11:41:17 +11:00
|
|
|
|
2020-03-09 20:38:15 +11:00
|
|
|
public $body;
|
2020-02-12 11:41:17 +11:00
|
|
|
|
2020-03-09 20:38:15 +11:00
|
|
|
public $product;
|
2020-02-12 11:41:17 +11:00
|
|
|
|
2020-03-09 20:38:15 +11:00
|
|
|
public $task;
|
2020-03-05 18:14:57 +11:00
|
|
|
|
2020-03-09 20:38:15 +11:00
|
|
|
public $footer;
|
2020-02-12 11:41:17 +11:00
|
|
|
|
2020-02-18 07:07:32 +11:00
|
|
|
public function __construct($design)
|
2020-02-12 11:41:17 +11:00
|
|
|
{
|
2020-03-07 17:31:26 +11:00
|
|
|
$this->includes = $design->includes;
|
2020-02-12 11:41:17 +11:00
|
|
|
|
2020-02-18 07:07:32 +11:00
|
|
|
$this->header = $design->header;
|
2020-02-12 11:41:17 +11:00
|
|
|
|
2020-02-18 07:07:32 +11:00
|
|
|
$this->body = $design->body;
|
2020-02-12 11:41:17 +11:00
|
|
|
|
2020-03-07 17:31:26 +11:00
|
|
|
$this->product = $design->product;
|
2020-02-12 11:41:17 +11:00
|
|
|
|
2020-03-07 17:31:26 +11:00
|
|
|
$this->task = $design->task;
|
2020-03-05 18:14:57 +11:00
|
|
|
|
2020-02-18 07:07:32 +11:00
|
|
|
$this->footer = $design->footer;
|
2020-03-07 17:31:26 +11:00
|
|
|
|
2020-02-12 11:41:17 +11:00
|
|
|
}
|
|
|
|
|
|
2020-03-07 17:31:26 +11:00
|
|
|
public function includes()
|
2020-03-04 22:09:43 +11:00
|
|
|
{
|
2020-03-07 17:31:26 +11:00
|
|
|
return $this->includes;
|
2020-03-04 22:09:43 +11:00
|
|
|
}
|
|
|
|
|
|
2020-02-12 11:41:17 +11:00
|
|
|
public function header()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
return $this->header;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function body()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
return $this->body;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2020-03-07 17:31:26 +11:00
|
|
|
public function product()
|
2020-02-12 11:41:17 +11:00
|
|
|
{
|
|
|
|
|
|
2020-03-07 17:31:26 +11:00
|
|
|
return $this->product;
|
2020-02-12 11:41:17 +11:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2020-03-07 17:31:26 +11:00
|
|
|
public function task()
|
2020-03-05 18:14:57 +11:00
|
|
|
{
|
2020-03-07 17:31:26 +11:00
|
|
|
return $this->task;
|
2020-03-05 18:14:57 +11:00
|
|
|
}
|
|
|
|
|
|
2020-02-12 11:41:17 +11:00
|
|
|
public function footer()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
return $this->footer;
|
2020-03-05 18:14:57 +11:00
|
|
|
|
2020-02-12 11:41:17 +11:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|