mirror of
https://github.com/ivuorinen/business-data-fetcher.git
synced 2026-03-18 00:01:01 +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,33 +2,27 @@
|
||||
|
||||
namespace Ivuorinen\BusinessDataFetcher\Dto;
|
||||
|
||||
use Ivuorinen\BusinessDataFetcher\Traits\HasSource;
|
||||
use Spatie\DataTransferObject\DataTransferObject;
|
||||
use Ivuorinen\BusinessDataFetcher\Traits;
|
||||
|
||||
/**
|
||||
* Company Name
|
||||
*/
|
||||
class BisCompanyName extends DataTransferObject
|
||||
{
|
||||
use HasSource;
|
||||
use Traits\HasSource;
|
||||
use Traits\HasVersion;
|
||||
use Traits\HasLanguage;
|
||||
|
||||
/**
|
||||
* Order
|
||||
*
|
||||
* Zero for primary company name,
|
||||
* other for translations of the primary company name
|
||||
* and auxiliary company names
|
||||
* Zero for primary company name, other for translations of the primary company name and auxiliary company names
|
||||
*/
|
||||
public int $order;
|
||||
/**
|
||||
* One for current version and >1 for historical company names
|
||||
*/
|
||||
public int $version;
|
||||
|
||||
/**
|
||||
* Date of registration
|
||||
*/
|
||||
public string $registrationDate = "";
|
||||
public string $registrationDate = '';
|
||||
|
||||
/**
|
||||
* Ending date of registration
|
||||
@@ -38,10 +32,5 @@ class BisCompanyName extends DataTransferObject
|
||||
/**
|
||||
* Company name
|
||||
*/
|
||||
public string $name = "";
|
||||
|
||||
/**
|
||||
* Two letter language code
|
||||
*/
|
||||
public ?string $language = null;
|
||||
public string $name = '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user