2020-08-04 16:56:17 +02: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\Services\PdfMaker\Designs\Utilities;
|
|
|
|
|
2020-08-05 11:47:32 +02:00
|
|
|
class BaseDesign
|
2020-08-04 16:56:17 +02:00
|
|
|
{
|
2020-08-05 11:47:32 +02:00
|
|
|
public function setup(): void
|
|
|
|
{
|
|
|
|
if (isset($this->context['client'])) {
|
|
|
|
$this->client = $this->context['client'];
|
|
|
|
}
|
|
|
|
|
|
|
|
if (isset($this->context['invoice'])) {
|
|
|
|
$this->invoice = $this->context['invoice'];
|
|
|
|
}
|
|
|
|
}
|
2020-08-04 16:56:17 +02:00
|
|
|
}
|