mirror of
https://github.com/ivuorinen/business-data-fetcher.git
synced 2026-03-18 05:00:57 +00:00
feat: parser now writes, added missing fields
updated docs, example, extensive use of Traits with better handling. valid level 9 phpstan codebase.
This commit is contained in:
@@ -2,30 +2,27 @@
|
||||
|
||||
namespace Ivuorinen\BusinessDataFetcher\Dto;
|
||||
|
||||
use Ivuorinen\BusinessDataFetcher\Traits\HasSource;
|
||||
use Spatie\DataTransferObject\DataTransferObject;
|
||||
use Ivuorinen\BusinessDataFetcher\Traits;
|
||||
|
||||
/**
|
||||
* Company Business Line
|
||||
*/
|
||||
class BisCompanyBusinessLine extends DataTransferObject
|
||||
{
|
||||
use HasSource;
|
||||
use Traits\HasSource;
|
||||
use Traits\HasVersion;
|
||||
use Traits\HasLanguage;
|
||||
|
||||
/**
|
||||
* Zero for main line of business, positive for others
|
||||
*/
|
||||
public int $order;
|
||||
|
||||
/**
|
||||
* One for current version and >1 for historical lines of business
|
||||
*/
|
||||
public int $version;
|
||||
|
||||
/**
|
||||
* Date of registration
|
||||
*/
|
||||
public string $registrationDate = "";
|
||||
public string $registrationDate = '';
|
||||
|
||||
/**
|
||||
* Ending date of registration
|
||||
@@ -35,10 +32,5 @@ class BisCompanyBusinessLine extends DataTransferObject
|
||||
/**
|
||||
* Name of line of business
|
||||
*/
|
||||
public string $name = "";
|
||||
|
||||
/**
|
||||
* Two letter language code
|
||||
*/
|
||||
public ?string $language = null;
|
||||
public string $name = '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user