mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Additional decorators
This commit is contained in:
parent
4183426f39
commit
a6b222bd9a
20
app/Export/Decorators/ContactDecorator.php
Normal file
20
app/Export/Decorators/ContactDecorator.php
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Invoice Ninja (https://invoiceninja.com).
|
||||||
|
*
|
||||||
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
||||||
|
*
|
||||||
|
* @copyright Copyright (c) 2023. Invoice Ninja LLC (https://invoiceninja.com)
|
||||||
|
*
|
||||||
|
* @license https://www.elastic.co/licensing/elastic-license
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace App\Export\Decorators;
|
||||||
|
|
||||||
|
class ContactDecorator implements DecoratorInterface
|
||||||
|
{
|
||||||
|
public function transform(string $key, mixed $entity): mixed
|
||||||
|
{
|
||||||
|
return 'Payment Decorator';
|
||||||
|
}
|
||||||
|
}
|
20
app/Export/Decorators/VendorContactDecorator.php
Normal file
20
app/Export/Decorators/VendorContactDecorator.php
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Invoice Ninja (https://invoiceninja.com).
|
||||||
|
*
|
||||||
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
||||||
|
*
|
||||||
|
* @copyright Copyright (c) 2023. Invoice Ninja LLC (https://invoiceninja.com)
|
||||||
|
*
|
||||||
|
* @license https://www.elastic.co/licensing/elastic-license
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace App\Export\Decorators;
|
||||||
|
|
||||||
|
class VendorContactDecorator implements DecoratorInterface
|
||||||
|
{
|
||||||
|
public function transform(string $key, mixed $entity): mixed
|
||||||
|
{
|
||||||
|
return 'Payment Decorator';
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user