Verifactu-PHP

ForeignFiscalIdentifier extends Model
in package

Identificador fiscal de fuera de España

Tags
field

RegistroAlta/Tercero

field

IDDestinatario

Table of Contents

Properties

$country  : string
Código del país (ISO 3166-1 alpha-2 codes)
$name  : string
Nombre-razón social
$type  : ForeignIdType
Clave para establecer el tipo de identificación en el país de residencia
$value  : string
Número de identificación en el país de residencia

Methods

__construct()  : mixed
Class constructor
validate()  : void
Validate this instance
validateCountry()  : void
validateType()  : void
validateVatNumber()  : void

Properties

$country

Código del país (ISO 3166-1 alpha-2 codes)

public string $country
Tags
field

IDOtro/CodigoPais

Attributes
#[NotBlank]
#[Regex]
$pattern: '/^[A-Z]{2}$/'

$name

Nombre-razón social

public string $name
Tags
field

NombreRazon

Attributes
#[Length]
$max: 120
#[NotBlank]

$value

Número de identificación en el país de residencia

public string $value
Tags
field

IDOtro/ID

Attributes
#[Length]
$max: 20
#[NotBlank]

Methods

__construct()

Class constructor

public __construct([string|null $name = null ][, string|null $country = null ][, ForeignIdType|null $type = null ][, string|null $value = null ]) : mixed
Parameters
$name : string|null = null

Name

$country : string|null = null

Country

$type : ForeignIdType|null = null

ID type

$value : string|null = null

ID value

validateCountry()

public final validateCountry(ExecutionContextInterface $context) : void
Parameters
$context : ExecutionContextInterface
Attributes
#[Callback]

validateType()

public final validateType(ExecutionContextInterface $context) : void
Parameters
$context : ExecutionContextInterface
Attributes
#[Callback]

validateVatNumber()

public final validateVatNumber(ExecutionContextInterface $context) : void
Parameters
$context : ExecutionContextInterface
Attributes
#[Callback]

        
On this page

Search results