Skip to content

Commit

Permalink
PreviewFactory: add createCompany()
Browse files Browse the repository at this point in the history
  • Loading branch information
MartkCz committed Feb 17, 2020
1 parent 577cec3 commit c95dde1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Preview/PreviewFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Contributte\Invoice\Preview;

use Contributte\Invoice\Data\Account;
use Contributte\Invoice\Data\Company;
use Contributte\Invoice\Data\Customer;
use Contributte\Invoice\Data\Order;
use Contributte\Invoice\Data\PaymentInformation;
Expand All @@ -11,6 +12,11 @@
final class PreviewFactory
{

public static function createCompany(): Company
{
return new Company('Contributte', 'Prague', 'U haldy', '110 00', 'Czech Republic', '08304431', 'CZ08304431');
}

public static function createCustomer(): Customer
{
return new Customer('John Doe', 'Los Angeles', 'Cavetown', '720 55', 'USA', '08304431', 'CZ08304431');
Expand Down

0 comments on commit c95dde1

Please sign in to comment.