mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-11 05:32:39 +01:00
77 lines
989 B
PHP
77 lines
989 B
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 $header;
|
||
|
|
||
|
private $body;
|
||
|
|
||
|
private $table;
|
||
|
|
||
|
private $footer;
|
||
|
|
||
|
private $table_styles;
|
||
|
|
||
|
public function __construct(array $data)
|
||
|
{
|
||
|
|
||
|
$this->header = $data['header'];
|
||
|
|
||
|
$this->body = $data['body'];
|
||
|
|
||
|
$this->table = $data['table'];
|
||
|
|
||
|
$this->footer = $data['footer'];
|
||
|
|
||
|
$this->table_styles = $data['table_styles'];
|
||
|
|
||
|
}
|
||
|
|
||
|
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;
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|